/* ═══════════════════════════════════════
   LOGIN — Page-specific styles
   ═══════════════════════════════════════ */

.auth-title {
  font-weight: var(--y-weight-bold);
  font-size: var(--y-font-xxxl);
  margin-bottom: var(--y-space-s);
}

.auth-subtitle {
  margin-bottom: var(--y-space-xxl);
}

.password-wrap {
  position: relative;
}

.password-wrap .form-control {
  padding-left: 2.5rem;
}

.auth-method-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--y-space-s);
  margin-bottom: var(--y-space-l);
}

.auth-method-btn {
  border: 1px solid var(--y-color-border);
  background: var(--y-color-bg-subtle);
  color: var(--y-color-text-muted);
  border-radius: var(--y-radius-l);
  padding: var(--y-space-s) var(--y-space-m);
  cursor: pointer;
  transition: all var(--y-transition-fast);
  font-size: var(--y-font-s);
}

.auth-method-btn.active {
  border-color: var(--y-color-primary);
  background: rgba(139, 105, 20, 0.08);
  color: var(--y-color-primary);
  font-weight: var(--y-weight-semibold);
}

/* TASK 12 FIX: Hide default Edge/IE password reveal icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--y-color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--y-space-xs);
  display: flex;
  align-items: center;
}

.login-options {
  margin-bottom: var(--y-space-xxl);
}

.remember-label {
  cursor: pointer;
}

.forgot-link {
  color: var(--y-color-primary);
}

.forgot-link:hover {
  text-decoration: underline;
}

.register-note {
  margin-top: var(--y-space-xxl);
}

.register-link {
  color: var(--y-color-primary);
  font-weight: var(--y-weight-semibold);
}

.register-link:hover {
  text-decoration: underline;
}

.demo-box {
  margin-top: var(--y-space-xxl);
  background: rgba(139, 105, 20, 0.05);
  border: 1px solid var(--y-color-border);
  border-radius: var(--y-radius-xl);
  padding: var(--y-space-l);
}

.demo-label {
  margin-bottom: var(--y-space-s);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1200px) {
  .auth-title {
    font-size: var(--y-font-xxl);
  }
}

@media (max-width: 992px) {

  /* TASK 15 FIX: Push icon down below header on mobile view */
  .auth-icon {
    margin-top: var(--y-space-5xl);
  }
}

@media (max-width: 768px) {
  .auth-title {
    font-size: var(--y-font-xl);
  }

  .auth-subtitle {
    font-size: var(--y-font-s);
  }

  .demo-box {
    padding: var(--y-space-m);
  }
}

@media (max-width: 480px) {
  .auth-title {
    font-size: var(--y-font-xl);
  }

  .login-options {
    flex-direction: column;
    gap: var(--y-space-m);
    align-items: flex-start;
  }

  .demo-box {
    margin-top: var(--y-space-l);
    padding: var(--y-space-m);
  }
}