/* ===========================================
   LOGIN PAGE STYLES
   =========================================== */

/* Auth Section */
.auth-section {
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, hsla(var(--gold), 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Auth Card */
.auth-card {
  background: var(--gradient-card);
  border: 1px solid hsla(var(--border), 0.5);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .auth-card {
    padding: 3rem;
  }
}

.auth-form-wrapper {
  animation: fadeIn 0.4s ease;
}

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

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-buttons {
  margin-top: 20px; /* Adjust this value as needed */
  text-align: left; /* keeps it left-aligned */
  padding-left: 20px; /* optional, to give some horizontal spacing */
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: hsl(var(--navy-900));
  border: 1px solid hsla(var(--border), 0.5);
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: hsl(0 84% 60%);
}

.form-hint {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* Password Input */
.password-input-wrapper {
  position: relative;
}

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

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

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

/* Form Options Row */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  line-height: 1.4;
  position: relative; /* Add this for absolute positioned input */
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.checkmark {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  border: 2px solid hsla(var(--border), 0.8);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 0.1rem;
  background-color: hsl(var(--background)); /* Add background */
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid hsl(var(--navy-900));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Optional: Add focus state for accessibility */
.checkbox-label input[type="checkbox"]:focus-visible + .checkmark {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Links */
.forgot-link,
.auth-link {
  color: hsl(var(--primary));
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}

.forgot-link:hover,
.auth-link:hover {
  opacity: 0.8;
}

/* Buttons */
.btn-full {
  width: 100%;
}

.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Error & Success Messages */
.error-message {
  background: hsla(0, 84%, 60%, 0.1);
  border: 1px solid hsla(0, 84%, 60%, 0.3);
  color: hsl(0 84% 60%);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  animation: fadeIn 0.3s ease;
}

.success-message {
  background: hsla(142, 76%, 36%, 0.1);
  border: 1px solid hsla(142, 76%, 36%, 0.3);
  color: hsl(142 76% 36%);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  animation: fadeIn 0.3s ease;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsla(var(--border), 0.5);
}

.auth-footer p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Features Sidebar */
.auth-features {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

@media (min-width: 1024px) {
  .auth-features {
    display: flex;
  }
}

.auth-features h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
}

.feature-list li svg {
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* Testimonial */
.testimonial {
  background: hsla(var(--navy-800), 0.5);
  border: 1px solid hsla(var(--border), 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
}

.testimonial blockquote {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-size: 0.875rem;
  color: hsl(var(--primary));
  font-style: normal;
  font-weight: 500;
}
