.auth-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0b573e 0%, #063b29 50%, #0b573e 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

/* Brand */
.auth-brand {
  color: white;
  position: relative;
  z-index: 1;
}

.auth-logo {
  max-width: 240px;
  filter: brightness(0) invert(1)
    drop-shadow(0 4px 20px rgba(255, 255, 255, 0.2));
  animation: fadeInUp 0.8s ease;
}

.brand-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.brand-text {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.brand-text strong {
  color: hsl(74, 77%, 49%);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Card */
.form-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0b573e, #28a745);
}

.small {
  font-size: 13px;
}

/* Forms Animation */
.forms-wrapper {
  position: relative;
  min-height: 380px;
}

.form-panel {
  width: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.forms-wrapper .form-panel {
  display: none;
}

.forms-wrapper.show-forgot .forgot-form {
  display: block;
}

.forms-wrapper.show-login .login-form {
  display: block;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.forms-wrapper.show-login .register-form {
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.forms-wrapper.show-register .register-form {
  display: block;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.forms-wrapper.show-register .login-form {
  opacity: 0;
  transform: translateX(-30px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* Form Elements */
.form-control {
  padding: 0.5rem 0.875rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0b573e;
  background: white;
  box-shadow: 0 0 0 0.25rem rgba(11, 87, 62, 0.1);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0b573e, #063b29);
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 87, 62, 0.4);
  background: linear-gradient(135deg, #063b29, #0b573e);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Adicione estes estilos ao seu arquivo auth.css */

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .form-control {
  padding-right: 3rem;
}

/* Password Toggle Button */
.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.2s ease;
  z-index: 10;
}

.password-toggle:hover {
  color: #0b573e;
}

.password-toggle:focus {
  outline: none;
  color: #0b573e;
}

.eye-icon {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
}

/* Quando senha está OCULTA (padrão): mostra olho ABERTO */
.eye-icon .eye-closed {
  display: none;
}

.eye-icon .eye-open {
  display: block;
}

/* Quando senha está VISÍVEL: mostra olho FECHADO/CORTADO */
.eye-icon.visible .eye-open {
  display: none;
}

.eye-icon.visible .eye-closed {
  display: block;
}

.password-toggle:active .eye-icon {
  transform: scale(0.9);
}

/* Links */
a {
  color: #0b573e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

a:hover {
  color: #063b29;
}

/* Password Strength */
.strength-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.strength-bar-fill.weak {
  width: 33%;
  background: linear-gradient(90deg, #dc3545, #ff6b7a);
}

.strength-bar-fill.medium {
  width: 66%;
  background: linear-gradient(90deg, #ffc107, #ffda6a);
}

.strength-bar-fill.strong {
  width: 100%;
  background: linear-gradient(90deg, #28a745, #5dd879);
}

/* Password Rules */
.password-rules {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 0.75rem;
}

.password-rules ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-rules li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.password-rules li.valid {
  color: #28a745;
}

.password-rules li.invalid {
  color: #dc3545;
}

.rule-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  background: #e0e0e0;
  color: #999;
  transition: all 0.3s;
  flex-shrink: 0;
}

.password-rules li.valid .rule-icon {
  background: #28a745;
  color: white;
}

.password-rules li.invalid .rule-icon {
  background: #dc3545;
  color: white;
}

/* Match Message */
.match-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.match-message.success {
  color: #28a745;
}

.match-message.error {
  color: #dc3545;
}

.match-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.match-message.success .match-icon {
  background: #28a745;
  color: white;
}

.match-message.error .match-icon {
  background: #dc3545;
  color: white;
}

/* Error Message */
#firebase-error-message {
  background: #fee;
  color: #dc3545;
  border-left: 4px solid #dc3545;
  border-radius: 10px;
}

@media (max-width: 1400px) {
  .auth-logo {
    max-width: 200px;
  }

  .brand-text {
    font-size: 1rem;
  }
}

@media (max-width: 1200px) {
  .auth-logo {
    max-width: 180px;
  }
  .brand-text {
    font-size: 0.875rem;
  }
}

@media (max-width: 992px) {
  .auth-container::before {
    background-size: 30px 30px;
  }

  .auth-logo {
    max-width: 200px;
  }

  .brand-title {
    font-size: 2.5rem;
  }

  .brand-text {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
  }

  .form-card {
    max-width: 100% !important;
  }

  .forms-wrapper {
    min-height: auto;
  }

  .row {
    column-gap: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .brand-title {
    font-size: 2rem;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .form-card {
    padding: 2rem 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .auth-container::before {
    display: none;
  }

  .row.min-vh-100 {
    min-height: auto !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .auth-logo {
    max-width: 160px;
  }

  .brand-title {
    font-size: 1.75rem;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .form-card {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    /* padding: 1.5rem 1rem !important; */
  }

  .form-control {
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .btn-primary {
    padding: 0.875rem 1rem;
    border-radius: 10px;
  }

  .password-rules {
    padding: 0.5rem;
  }

  .password-rules li {
    font-size: 0.8rem;
  }

  .password-toggle {
    width: 2.75rem;
  }

  .password-input-wrapper .form-control {
    padding-right: 2.75rem;
  }
}

@media (max-width: 400px) {
  .brand-title {
    font-size: 1.5rem;
  }

  .brand-text {
    font-size: 0.85rem;
  }

  .form-card {
    padding: 1.25rem 0.875rem !important;
  }

  .form-control {
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }

  .btn-primary {
    font-size: 0.95rem;
  }
}
