/* ─── MAIN LAYOUT ─── */
    .login-page {
      flex: 1;
      display: flex;
      align-items: stretch;
      position: relative;
      overflow: hidden;
    }
 
    /* ─── LEFT PANEL ─── */
    .login-left {
      flex: 1;
      background: var(--mag);
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding: 4rem 5%;
      overflow: hidden;
    }
 
    /* Blob decorations */
    .blob {
      position: absolute;
      border-radius: 50%;
      filter: blur(70px);
      pointer-events: none;
    }
    .b1 { width: 420px; height: 420px; background: rgba(255,255,255,.09); top: -180px; right: -120px;  }
    .b2 { width: 300px; height: 300px; background: rgba(61,214,192,.12); bottom: -100px; left: -80px;  }
    .b3 { width: 180px; height: 180px; background: rgba(240,180,41,.1); top: 42%; left: 38%;  }
    @keyframes blobf { 0%,100%{transform:translate(0,0)} 50%{transform:translate(18px,-14px)} }
 
    /* Watermark text */
    .left-wm {
      position: absolute;
      bottom: -20px; right: -10px;
      font-size: clamp(5rem, 10vw, 9rem);
      font-weight: 900;
      font-style: italic;
      color: transparent;
      -webkit-text-stroke: 1.5px rgba(255,255,255,.1);
      pointer-events: none;
      letter-spacing: -4px;
      user-select: none;
      white-space: nowrap;
    }
 
    .left-content { position: relative; z-index: 2; max-width: 400px; }
 
    .left-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,.18);
      border: 1.5px solid rgba(255,255,255,.25);
      border-radius: 50px;
      padding: 6px 14px 6px 10px;
      font-size: .75rem;
      font-weight: 600;
      color: rgba(255,255,255,.92);
      margin-bottom: 1.4rem;
    }
    .left-pill .dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--gold);
    }
    @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.4)} }
 
    .left-content h1 {
    white-space: nowrap;
      font-size: clamp(4rem, 8vw, 6.5rem);
      font-weight: 900;
      line-height: 1.1;
      color: #fff;
      letter-spacing: -1px;
      margin-bottom: 1rem;
    }
    .left-content h1 em {
      font-style: italic;
      color: var(--gold);
      text-decoration: underline;
    }
 
    .left-desc {
    white-space: nowrap;
      font-size: 1.2rem;
      color: rgba(255,255,255,.78);
      line-height: 1.85;
      margin-bottom: 2.2rem;
      font-weight: 400;
    }
 
    .left-stats {
      display: flex;
      gap: .9rem;
      flex-wrap: wrap;
    }
    .lstat {
      background: rgba(255,255,255,.14);
      border: 1.5px solid rgba(255,255,255,.2);
      border-radius: 14px;
      padding: .7rem 1.1rem;
      text-align: center;
      min-width: 80px;
      backdrop-filter: blur(6px);
    }
    .lstat-n { font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1; }
    .lstat-l { font-size: .65rem; color: rgba(255,255,255,.65); margin-top: 3px; font-weight: 500; letter-spacing: .5px; }
 
    /* ─── RIGHT PANEL (FORM) ─── */
    .login-right {
      width: min(50%, 560px);
      background: var(--white);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 3rem 2.5rem;
      position: relative;
    }
 
    .form-box {
      width: 100%;
      max-width: 400px;
    }
 
    .form-header {
      margin-bottom: 2.2rem;
    }
    .form-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: .7rem;
      font-weight: 700;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--mag);
      margin-bottom: .6rem;
    }
    .form-eyebrow::before {
      content: '';
      display: block;
      width: 18px; height: 2px;
      background: var(--mag);
      border-radius: 2px;
    }
    .form-header h2 {
      font-size: clamp(2.2rem, 6vw, 4rem);
      font-weight: 900;
      color: var(--text);
      line-height: 1.15;
      letter-spacing: -.8px;
      margin-bottom: .5rem;
    }
    .form-header h2 span { color: var(--mag); font-style: italic; }
    .form-header p {
      font-size: .88rem;
      color: var(--text-soft);
      line-height: 1.65;
      font-weight: 400;
    }
 
    /* ─── FORM FIELDS ─── */
    .field-group {
      margin-bottom: 1.15rem;
    }
 
    .field-label {
      display: block;
      font-size: .78rem;
      font-weight: 700;
      color: var(--text-mid);
      margin-bottom: .45rem;
      letter-spacing: .3px;
    }
 
    .field-wrap {
      position: relative;
    }
    .field-wrap .field-ico {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-soft);
      font-size: .9rem;
      pointer-events: none;
      transition: color .2s;
    }
    .field-wrap input {
      width: 100%;
      background: var(--mag-pale);
      border: 2px solid var(--mag-pale2);
      border-radius: 14px;
      padding: .78rem 1rem .78rem 2.6rem;
      font-family: 'Kanit', sans-serif;
      font-size: .92rem;
      font-weight: 500;
      color: var(--text);
      outline: none;
      transition: border-color .2s, box-shadow .2s, background .2s;
      min-height: 50px;
    }
    .field-wrap input::placeholder { color: var(--text-soft); font-weight: 400; }
    .field-wrap input:focus {
      border-color: var(--mag);
      background: #fff;
      box-shadow: 0 0 0 4px rgba(200,78,216,.1);
    }
    .field-wrap input:focus + .field-ico,
    .field-wrap:focus-within .field-ico { color: var(--mag); }
 
    /* Eye toggle */
    .eye-btn {
      position: absolute;
      right: 13px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-soft);
      font-size: .88rem;
      cursor: pointer;
      padding: 5px;
      -webkit-tap-highlight-color: transparent;
      transition: color .2s;
    }
    .eye-btn:hover { color: var(--mag); }
 
    /* Error state */
    .field-wrap input.error { border-color: var(--error); background: #fff5f5; }
    .field-error { font-size: .72rem; color: var(--error); margin-top: .3rem; font-weight: 600; display: none; }
    .field-error.show { display: block; }
 
    /* Row: remember + forgot */
    .form-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.5rem;
      }
    .check-label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: .78rem;
      font-weight: 600;
      color: var(--text-mid);
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .check-label input[type="checkbox"] { display: none; }
    .check-box {
      width: 18px; height: 18px;
      border: 2px solid var(--mag-pale2);
      border-radius: 5px;
      background: var(--mag-pale);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: background .2s, border-color .2s;
    }
    .check-label input:checked + .check-box {
      background: var(--mag);
      border-color: var(--mag);
    }
    .check-label input:checked + .check-box::after {
      content: '✓';
      font-size: .65rem;
      color: #fff;
      font-weight: 900;
    }
    .forgot-link {
      font-size: .78rem;
      font-weight: 700;
      color: var(--mag);
      text-decoration: none;
      transition: color .2s;
    }
    .forgot-link:hover { color: var(--mag-dark); text-decoration: underline; }
 
    /* Submit button */
    .btn-submit {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      width: 100%;
      background: var(--mag);
      color: #fff;
      font-family: 'Kanit', sans-serif;
      font-size: 1rem;
      font-weight: 800;
      padding: .85rem 1.5rem;
      border-radius: 50px;
      border: none;
      cursor: pointer;
      box-shadow: 0 10px 30px rgba(200,78,216,.35);
      transition: transform .2s, box-shadow .2s, background .2s;
      min-height: 52px;
      letter-spacing: .3px;
      -webkit-tap-highlight-color: transparent;
    }
    .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(200,78,216,.45); }
    .btn-submit:active { transform: translateY(0); }
    .btn-submit.loading .spin { display: inline-block; }
    .btn-submit.loading .btn-label { display: none; }
    @keyframes spin { to { transform: rotate(360deg); } }
 
    /* Divider */
    .or-divider {
      display: flex;
      align-items: center;
      gap: .8rem;
      margin: 1.3rem 0;
    }
    .or-divider::before, .or-divider::after {
      content: '';
      flex: 1;
      height: 1.5px;
      background: var(--mag-pale2);
      border-radius: 2px;
    }
    .or-divider span {
      font-size: .72rem;
      font-weight: 700;
      color: var(--text-soft);
      letter-spacing: 2px;
      text-transform: uppercase;
      white-space: nowrap;
    }
 
    /* Social login */
    .social-row {
      display: flex;
      gap: .7rem;
    }
    .soc-login {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: var(--mag-pale);
      border: 1.5px solid var(--mag-pale2);
      border-radius: 12px;
      padding: .7rem;
      font-family: 'Kanit', sans-serif;
      font-size: .78rem;
      font-weight: 700;
      color: var(--text-mid);
      text-decoration: none;
      transition: border-color .2s, background .2s, color .2s;
      cursor: pointer;
      min-height: 46px;
      -webkit-tap-highlight-color: transparent;
    }
    .soc-login:hover { border-color: var(--mag); background: #fff; color: var(--mag); }
    .soc-login i { font-size: 1rem; }
    .soc-login.google i { color: #ea4335; }
    .soc-login.fb     i { color: #1877f2; }

    
    .school {
      display: block;
      font-size: 2em;
      white-space: nowrap;
      font-weight: 500;
      letter-spacing: .3px;
      color: #fff;
      font-style: normal;
      margin-top: .1em;
      overflow-wrap: break-word;
    }
 
    /* ─── TOAST NOTIFICATION ─── */
    .toast {
      position: fixed;
      bottom: 1.5rem;
      right: 1.5rem;
      background: #fff;
      border-left: 4px solid var(--mag);
      border-radius: 12px;
      padding: 1rem 1.2rem;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 12px 40px rgba(0,0,0,.14);
      font-size: .85rem;
      font-weight: 600;
      color: var(--text);
      z-index: 9999;
      transform: translateX(110%);
      transition: transform .4s cubic-bezier(.32,.72,0,1);
      max-width: 300px;
    }
    .toast.show { transform: translateX(0); }
    .toast i { color: var(--mag); font-size: 1.1rem; }
    .toast.error { border-color: var(--error); }
    .toast.error i { color: var(--error); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 768px) {
      .login-left { display: none; }
      .login-right {
        width: 100%;
        padding: 2rem 1.5rem 2.5rem;
      }
      .form-box { max-width: 100%; }
    }
 
    @media (max-width: 400px) {
      .social-row { flex-direction: column; }
      .soc-login { min-height: 48px; }
    }