/* Estilos para as páginas de login, registro e gestão de usuários */

.auth-container {
  max-width: 450px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.auth-title {
  text-align: center;
  margin-bottom: 25px;
  color: #2962ff;
  font-size: 1.8rem;
  font-weight: 700;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  margin-bottom: 5px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #2962ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.2);
}

.btn-auth {
  background-color: #2962ff;
  color: white;
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.btn-auth:hover {
  background-color: #1e50e0;
}

.auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.auth-links a {
  color: #2962ff;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #999;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #eee;
}

.auth-separator::before {
  margin-right: 10px;
}

.auth-separator::after {
  margin-left: 10px;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f5f5f5;
  border: 1px solid #eee;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn img {
  width: 25px;
  height: 25px;
}

.auth-message {
  text-align: center;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-weight: 500;
}

.auth-message.error {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.auth-message.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.auth-message.info {
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196F3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

/* Estilos para o campo de código de verificação */
.verification-code {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0;
}

/* Estilos para os radio buttons */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.radio {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio input[type="radio"] {
  margin-right: 8px;
}

.verification-code input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.verification-code input:focus {
  border-color: #2962ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.2);
}

.resend-code {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
}

.resend-code a {
  color: #2962ff;
  text-decoration: none;
}

.resend-code a:hover {
  text-decoration: underline;
}

/* Estilos para o perfil e para a página de conta */
.user-profile {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.profile-info p {
  margin: 5px 0 0;
  color: #666;
}

.account-balance {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2962ff;
  margin-top: 10px;
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.profile-tab {
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: #666;
  transition: color 0.2s;
}

.profile-tab.active {
  color: #2962ff;
}

.profile-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #2962ff;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.profile-tab:hover {
  color: #2962ff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.bot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.bot-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.bot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.bot-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.bot-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.bot-status.active {
  background-color: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
}

.bot-status.inactive {
  background-color: rgba(158, 158, 158, 0.15);
  color: #9E9E9E;
}

.bot-info {
  margin-bottom: 15px;
}

.bot-info p {
  margin: 5px 0;
  color: #666;
  font-size: 0.9rem;
}

.bot-actions {
  display: flex;
  gap: 10px;
}

.leverage-setting {
  margin-top: 20px;
}

.leverage-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.leverage-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #eee;
  outline: none;
  margin: 15px 0;
}

.leverage-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2962ff;
  cursor: pointer;
}

.transaction-list {
  margin-top: 20px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.transaction-details {
  flex: 1;
}

.transaction-title {
  margin: 0;
  font-weight: 500;
  color: #333;
}

.transaction-date {
  margin: 0;
  font-size: 0.8rem;
  color: #888;
}

.transaction-amount {
  font-weight: 600;
}

.transaction-amount.positive {
  color: #4CAF50;
}

.transaction-amount.negative {
  color: #F44336;
}

.add-funds-form {
  max-width: 400px;
  margin: 20px auto;
}

/* Responsividade */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-avatar {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .profile-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .verification-code input {
    width: 40px;
    height: 50px;
    font-size: 1.2rem;
  }
}