.auth-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.auth-visual {
  flex: 1;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  max-width: 400px;
}

.auth-visual-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.auth-visual-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.7;
}

.auth-features {
  margin-top: 3rem;
  text-align: left;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.auth-feature-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.auth-feature-text h5 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.auth-feature-text span {
  font-size: 0.875rem;
  opacity: 0.8;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  width: 100%;
  max-width: 450px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-logo img {
  width: 50px;
  height: 50px;
}

.auth-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--gray);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-form label {
  font-weight: 600;
  color: var(--dark-light);
  font-size: 0.9rem;
}

.auth-form input {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--lighter);
  border: 2px solid var(--light);
}

.auth-form input:focus {
  border-color: var(--primary);
  background: var(--white);
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--gray);
  font-size: 1.1rem;
}

.password-toggle:hover {
  color: var(--primary);
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.remember-me input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.remember-me span {
  font-size: 0.9rem;
  color: var(--gray);
}

.forgot-link {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-form .btn {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light);
}

.auth-divider span {
  color: var(--gray);
  font-size: 0.875rem;
}

.social-auth {
  display: flex;
  gap: 1rem;
}

.social-btn {
  flex: 1;
  padding: 0.875rem;
  border-radius: var(--radius);
  background: var(--lighter);
  border: 2px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--dark-light);
}

.social-btn:hover {
  border-color: var(--primary);
  background: var(--white);
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--gray);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

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

.otp-container {
  display: none;
}

.otp-container.active {
  display: block;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.otp-input {
  width: 50px;
  height: 55px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius);
  background: var(--lighter);
  border: 2px solid var(--light);
}

.otp-input:focus {
  border-color: var(--primary);
  background: var(--white);
}

.otp-timer {
  text-align: center;
  color: var(--gray);
  margin-bottom: 1rem;
}

.otp-timer span {
  color: var(--primary);
  font-weight: 600;
}

.resend-otp {
  background: none;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.resend-otp:disabled {
  color: var(--gray);
  text-decoration: none;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .auth-visual {
    display: none;
  }
  
  .auth-page {
    align-items: flex-start;
    padding-top: 2rem;
  }
  
  .auth-container {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding: 1rem;
  }
  
  .auth-container {
    padding: 0.5rem;
  }
  
  .auth-box {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  .auth-header h1 {
    font-size: 1.5rem;
  }
  
  .auth-form {
    gap: 1rem;
  }
  
  .auth-form input {
    padding: 0.75rem;
  }
  
  .auth-form .btn {
    padding: 0.875rem;
  }
}

@media (max-width: 480px) {
  .auth-box {
    padding: 1.5rem 1rem;
  }
  
  .auth-logo img {
    width: 40px;
    height: 40px;
  }
  
  .auth-logo span {
    font-size: 1.25rem;
  }
  
  .auth-header h1 {
    font-size: 1.25rem;
  }
  
  .auth-header p {
    font-size: 0.875rem;
  }
  
  .otp-inputs {
    gap: 0.5rem;
  }
  
  .otp-input {
    width: 40px;
    height: 45px;
    font-size: 1.25rem;
  }
  
  .auth-footer {
    font-size: 0.875rem;
  }
  
  .remember-me span {
    font-size: 0.8rem;
  }
}
