  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  :root {
    --green:         #0e3d26;
    --green-hover:   #092819;
    --green-dark:    #0a2517;
    --green-mid:     #1b4d32;
    --green-light:   #eaf4eb;
    --green-pale:    #f2f8f3;
    --amber:         #d97706;
    --amber-hover:   #b45309;
    --amber-accent:  #e59522;
    --text:          #12372a;
    --text-dark:     #111827;
    --text-mid:      #4b5563;
    --text-light:    #6b7280;
    --text-muted:    #9ca3af;
    --border:        #e5e7eb;
    --border-focus:  #1b4d32;
    --bg-card:       #ffffff;
    --input-bg:      #fafaf9;
    --error:         #dc2626;
    --error-bg:      #fef2f2;
    --error-border:  #fecaca;
    --success:       #0e3d26;
    --success-bg:    #ecfdf5;
    --success-border:#a7f3d0;
  }

  html, body {
    min-height: 100%;
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: #f3f6ef;
    overflow-x: hidden;
  }

  /* ═══════════════════════════════════════════
    MAIN CONTAINER & LANDSCAPE BACKGROUND
  ═══════════════════════════════════════════ */
  .login-page {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
  }

  .login-background {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: linear-gradient(rgba(5, 30, 20, 0.58), rgba(5, 30, 20, 0.58)), url('/assets/img/forbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* ═══════════════════════════════════════════
    LAYOUT: LEFT PANEL & RIGHT FLOATING CARD
  ═══════════════════════════════════════════ */
  .main-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 2fr;
  }

  /* ── LEFT PANEL BRANDING ── */
  .left-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
  }

  .left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
  }

  .logo-badge {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .logo-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  }

  .logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }

  .hero-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.95;
  }

  .hero-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 60px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-shadow: none;
  }

  .amber-bar {
    display: inline-block;
    width: 4px;
    height: 34px;
    background: var(--amber-accent);
    border-radius: 2px;
    margin-left: 3px;
    vertical-align: middle;
  }

  .hero-tagline {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
    margin-top: 14px;
    text-align: center;
    max-width: 290px;
    text-shadow: none;
  }

  .hero-amber-line {
    width: 42px;
    height: 3.5px;
    background: var(--amber-accent);
    border-radius: 2px;
    margin-top: 16px;
  }

  /* ── RIGHT PANEL (FLOATING CARD CONTAINER) ── */
  .right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 6vw 40px 20px;
    animation: slideInUp 0.6s ease-out;
  }

  /* ═══════════════════════════════════════════
    CARD COMPONENT (LOGIN / FORGOT / REGISTER)
  ═══════════════════════════════════════════ */
  .card, .reg-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 38px 36px 32px;
    width: 430px;
    max-width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: all 0.3s ease;
  }

  .reg-card {
    width: 480px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .reg-card::-webkit-scrollbar {
    width: 4px;
  }

  .reg-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
  }

  /* Avatar Badge */
  .avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
  }

  .avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(27, 77, 50, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
  }

  /* Card Headings */
  .card-head {
    text-align: center;
    margin-bottom: 22px;
  }

  .card-head h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
  }

  .card-head p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
  }

  /* ═══════════════════════════════════════════
    FORM FIELDS & INPUTS
  ═══════════════════════════════════════════ */
  .field {
    margin-bottom: 16px;
  }

  .field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-mid);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .inp-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }

  .inp-wrap .inp-ico {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: var(--text-muted);
    pointer-events: none;
  }

  .inp-wrap .inp-ico svg {
    width: 16px;
    height: 16px;
  }

  .inp-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 38px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  }

  .inp-wrap input:focus {
    border-color: var(--green-mid);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 77, 50, 0.12);
  }

  .inp-wrap input::placeholder {
    color: var(--text-muted);
  }

  .inp-wrap input.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  }

  .inp-wrap input.valid {
    border-color: var(--green-mid);
  }

  .show-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.18s;
  }

  .show-pw:hover {
    color: var(--text-mid);
  }

  .show-pw svg {
    width: 16px;
    height: 16px;
  }

  /* Forgot Password Link */
  .forgot-row {
    text-align: right;
    margin-top: 6px;
  }

  .forgot-row a {
    font-size: 11.5px;
    color: var(--amber);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
  }

  .forgot-row a:hover {
    color: var(--amber-hover);
    text-decoration: underline;
  }

  /* ═══════════════════════════════════════════
    BUTTONS
  ═══════════════════════════════════════════ */
  .btn-signin {
    width: 100%;
    height: 46px;
    background: var(--green);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  }

  .btn-signin:hover {
    background: var(--green-hover);
    box-shadow: 0 6px 18px rgba(14, 61, 38, 0.25);
    transform: translateY(-1px);
  }

  .btn-signin:active {
    transform: translateY(0);
  }

  .btn-signin svg {
    width: 16px;
    height: 16px;
  }

  /* Footer row in card */
  .reg-row {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-mid);
    margin-top: 18px;
  }

  .reg-row a {
    color: var(--amber);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
  }

  .reg-row a:hover {
    color: var(--amber-hover);
    text-decoration: underline;
  }

  /* ═══════════════════════════════════════════
    MESSAGES & ALERTS
  ═══════════════════════════════════════════ */
  .error-msg {
    display: none;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--error);
    margin-bottom: 14px;
    font-weight: 500;
    align-items: center;
    gap: 8px;
  }

  .error-msg.show {
    display: flex;
  }

  .error-msg svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  .success-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--success);
  }

  .success-msg svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  /* ═══════════════════════════════════════════
    REGISTER MULTI-STEP & FORGOT PASSWORD
  ═══════════════════════════════════════════ */
  .step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 22px;
  }

  .step-item {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    background: #ffffff;
    transition: all 0.25s;
    flex-shrink: 0;
  }

  .step-circle.active {
    background: var(--green);
    border-color: var(--green);
    color: #ffffff;
  }

  .step-circle.done {
    background: #c8e6c9;
    border-color: #c8e6c9;
    color: var(--green-dark);
  }

  .step-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .step-label.active {
    color: var(--green);
  }

  .step-label.done {
    color: var(--green-dark);
  }

  .step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 6px;
    border-radius: 1px;
  }

  .step-line.done {
    background: var(--green);
  }

  .reg-card-head {
    margin-bottom: 18px;
  }

  .reg-card-head h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
  }

  .reg-card-head p {
    font-size: 12px;
    color: var(--text-light);
  }

  .field-row {
    display: flex;
    gap: 10px;
  }

  .field-row .field {
    flex: 1;
  }

  select.inst-select {
    width: 100%;
    height: 44px;
    padding: 0 34px 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--input-bg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
  }

  select.inst-select:focus {
    border-color: var(--green-mid);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 77, 50, 0.12);
  }

  /* Password strength */
  .pw-strength-bar {
    display: flex;
    gap: 4px;
    margin-top: 6px;
  }

  .pw-seg {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--border);
    transition: background 0.3s;
  }

  .pw-seg.weak { background: #ef4444; }
  .pw-seg.fair { background: #f59e0b; }
  .pw-seg.good { background: #10b981; }
  .pw-seg.strong { background: var(--green); }

  .pw-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
  }

  /* OTP boxes */
  .otp-wrap {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px 0 6px;
  }

  .otp-box {
    width: 44px;
    height: 48px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--green);
    text-align: center;
    outline: none;
    background: var(--input-bg);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  }

  .otp-box:focus {
    border-color: var(--green-mid);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 77, 50, 0.12);
  }

  .otp-box.filled {
    border-color: var(--green-mid);
    background: var(--green-pale);
  }

  .otp-sent-to {
    font-size: 11.5px;
    color: var(--text-mid);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .otp-sent-to strong {
    color: var(--green);
    font-weight: 600;
  }

  .otp-timer {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
  }

  .otp-timer .resend-btn {
    color: var(--amber);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11.5px;
    font-family: 'Inter', sans-serif;
  }

  .otp-countdown {
    font-weight: 600;
    color: var(--green);
  }

  /* Review summary */
  .review-card {
    background: var(--green-pale);
    border: 1px solid rgba(27, 77, 50, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
  }

  .review-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(27, 77, 50, 0.08);
  }

  .review-row:last-child {
    border-bottom: none;
  }

  .review-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 75px;
    padding-top: 1px;
  }

  .review-value {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--green-mid);
    flex: 1;
    word-break: break-all;
  }

  .terms-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .terms-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: var(--green);
    cursor: pointer;
    flex-shrink: 0;
  }

  .terms-row label {
    font-size: 11.5px;
    color: var(--text-mid);
    line-height: 1.5;
    cursor: pointer;
  }

  .terms-row label a {
    color: var(--amber);
    font-weight: 600;
    text-decoration: none;
  }

  /* Navigation buttons */
  .reg-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
  }

  .btn-back {
    padding: 0 18px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    color: var(--text-mid);
    transition: border-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-back:hover {
    border-color: var(--green-mid);
    color: var(--green-mid);
  }

  .btn-back svg {
    width: 14px;
    height: 14px;
  }

  .btn-continue {
    flex: 1;
    height: 44px;
    background: var(--green);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }

  .btn-continue:hover {
    background: var(--green-hover);
    box-shadow: 0 6px 18px rgba(14, 61, 38, 0.22);
  }

  .btn-continue svg {
    width: 14px;
    height: 14px;
  }

  .reg-bottom-row {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 14px;
  }

  .reg-bottom-row a {
    color: var(--amber);
    font-weight: 600;
    text-decoration: none;
  }

  .reg-bottom-row a:hover {
    text-decoration: underline;
  }

  /* Visibility */
  .login-view.hidden, .register-view.hidden {
    display: none;
  }

  /* ═══════════════════════════════════════════
    ANIMATIONS
  ═══════════════════════════════════════════ */
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ═══════════════════════════════════════════
    RESPONSIVE DESIGN
  ═══════════════════════════════════════════ */
  @media (max-width: 768px) {
    .main-layout {
      grid-template-columns: 1fr;
      min-height: 100vh;
      padding-bottom: 30px;
    }

    .left-panel {
      padding: 36px 20px 10px;
    }

    .logo-badge {
      width: 76px;
      height: 76px;
      margin-bottom: 12px;
    }

    .hero-brand {
      font-size: 38px;
    }

    .hero-tagline {
      font-size: 12.5px;
      max-width: 280px;
    }

    .right-panel {
      padding: 10px 16px 30px;
    }

    .card, .reg-card {
      width: 100%;
      max-width: 420px;
      padding: 28px 20px 24px;
      border-radius: 16px;
    }

    .field-row {
      flex-direction: column;
      gap: 0;
    }
  }

  @media (max-width: 480px) {
    .card, .reg-card {
      padding: 24px 16px 20px;
      border-radius: 14px;
    }

    .hero-brand {
      font-size: 32px;
    }

    .hero-tagline {
      font-size: 11.5px;
      max-width: 250px;
    }
  }

/* Transparent emblem: no white badge or circular cropping. */
.logo-badge,.avatar{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;overflow:visible;}
.logo-badge:hover{box-shadow:none;}
.logo-badge img,.avatar img{object-fit:contain;border-radius:0;}
