/* Auth Styles - Identidade visual do site */

.authSection {
  width: 100%;
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #7ea8c9;
}

.authContainer {
  width: 100%;
  max-width: 450px;
  padding: 0 1rem;
}

.authCard {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Header */
.authHeader {
  text-align: center;
  margin-bottom: 2rem;
}

.authIcon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #24231f 0%, #3a3935 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.authIcon i {
  font-size: 2rem;
  color: white;
}

.authHeader h1 {
  color: #24231f;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.authHeader p {
  color: #555;
  font-size: 0.95rem;
}

/* Alert Messages */
.authCard .alert {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.authCard .alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.authCard .alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.authCard .alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Form */
.authForm {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.authFormGroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.authFormGroup label {
  color: #24231f;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.authFormGroup label i {
  color: #7ea8c9;
  font-size: 0.85rem;
}

.authFormGroup input {
  background-color: #f8f9fa;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid #eee;
  color: #24231f;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.authFormGroup input:focus {
  outline: none;
  border-color: #7ea8c9;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(126, 168, 201, 0.15);
}

.authFormGroup input::placeholder {
  color: #aaa;
}

.authFormGroup input.is-invalid {
  border-color: #dc3545;
}

.authFormGroup .invalid-feedback {
  color: #dc3545;
  font-size: 0.85rem;
  display: block;
}

/* Checkbox */
.authCheckbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.authCheckbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #7ea8c9;
  cursor: pointer;
}

.authCheckbox label {
  color: #555;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Submit Button */
.authSubmitBtn {
  background: linear-gradient(135deg, #24231f 0%, #3a3935 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  width: 100%;
}

.authSubmitBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(36, 35, 31, 0.3);
}

.authSubmitBtn:active {
  transform: translateY(-1px);
}

.authSubmitBtn i {
  font-size: 1rem;
}

/* Links */
.authLinks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.authLinks a {
  color: #7ea8c9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.authLinks a:hover {
  color: #24231f;
}

.authDivider {
  color: #aaa;
  font-size: 0.85rem;
}

/* Back to Home */
.authBackHome {
  text-align: center;
  margin-top: 1.5rem;
}

.authBackHome a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.authBackHome a:hover {
  background: white;
  color: #24231f;
}

/* Password Strength Indicator */
.passwordStrength {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.passwordStrength span {
  flex: 1;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.passwordStrength.weak span:first-child {
  background: #dc3545;
}

.passwordStrength.medium span:nth-child(-n+2) {
  background: #ffc107;
}

.passwordStrength.strong span:nth-child(-n+3) {
  background: #28a745;
}

.passwordStrength.very-strong span {
  background: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
  .authSection {
    padding: 2rem 0;
    min-height: auto;
  }

  .authCard {
    padding: 2rem 1.5rem;
  }

  .authIcon {
    width: 70px;
    height: 70px;
  }

  .authIcon i {
    font-size: 1.75rem;
  }

  .authHeader h1 {
    font-size: 1.5rem;
  }

  .authFormGroup input {
    padding: 0.875rem 1rem;
  }

  .authSubmitBtn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .authCard {
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
  }

  .authIcon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .authIcon i {
    font-size: 1.5rem;
  }

  .authHeader h1 {
    font-size: 1.35rem;
  }

  .authHeader p {
    font-size: 0.9rem;
  }

  .authFormGroup label {
    font-size: 0.85rem;
  }

  .authFormGroup input {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .authSubmitBtn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .authLinks {
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }

  .authLinks a {
    font-size: 0.85rem;
  }
}
