/* ============================================
   EPC Student Management System
   Auth Pages Stylesheet (Login / Register)
   ============================================ */

/* ── Auth Layout ─────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--clr-bg);
}

/* ── Left Panel — Branding ────────────────── */
.auth-brand {
  background: linear-gradient(145deg, #1B2A4A, #0F1B33);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 106, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
}

.auth-brand-logo {
  width: 112px;
  height: 44px;
  background: url("../photo img.png") left center / contain no-repeat;
  color: transparent;
  font-size: 0;
  margin-bottom: var(--space-2xl);
}

.auth-brand-logo span {
  display: none;
}

.auth-brand h2 {
  font-size: 2rem;
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
  line-height: 1.25;
}

.auth-brand p {
  font-size: 0.9375rem;
  color: #8B9DC3;
  max-width: 400px;
  line-height: 1.7;
}

.auth-features {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #A0B1CE;
  font-size: 0.875rem;
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(79, 106, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--clr-primary);
}

/* ── Right Panel — Form ──────────────────── */
.auth-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  background: var(--clr-white);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: var(--space-2xl);
}

.auth-form-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.auth-form-header p {
  font-size: 0.875rem;
}

/* ── Form Styling ─────────────────────────── */
.auth-form .form-group {
  margin-bottom: var(--space-lg);
}

.auth-form .form-input {
  height: 44px;
  font-size: 0.875rem;
}

.auth-form .form-select {
  height: 44px;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-gray-400);
  padding: 4px;
  display: flex;
  align-items: center;
}

.password-toggle:hover {
  color: var(--clr-gray-600);
}

/* ── Remember & Forgot Row ────────────────── */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  font-size: 0.8125rem;
}

.auth-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-gray-600);
  cursor: pointer;
}

.auth-options label input[type="checkbox"] {
  accent-color: var(--clr-primary);
  width: 15px;
  height: 15px;
}

.auth-options a {
  color: var(--clr-primary);
  font-weight: 500;
}

/* ── Form Row (2 columns) ─────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ── Auth Footer Links ────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  color: var(--clr-gray-500);
}

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

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

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-form-section {
    padding: var(--space-xl) var(--space-md);
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .auth-form-header h1 {
    font-size: 1.375rem;
  }
}
