:root {
      --green:  #006233;
      --green2: #004d27;
      --green3: #00391d;
      --red:    #C8102E;
      --gold:   #c9a84c;
      --white:  #F8F5F0;
      --cream:  #fdf9f4;
      --dark:   #0d1a0f;
      --dark2:  #111f13;
      --muted:  rgba(255,255,255,0.45);
      --border: rgba(0,98,51,0.35);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Cairo', sans-serif;
      background: var(--dark);
      color: var(--white);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── BACKGROUND ── */
    .bg-layer {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background:
        radial-gradient(ellipse 60% 50% at 10% 20%, rgba(0,98,51,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 90% 80%, rgba(200,16,46,0.1) 0%, transparent 70%),
        radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,0.3) 0%, transparent 100%);
    }
    .bg-grid {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background-image:
        linear-gradient(rgba(0,98,51,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,98,51,0.06) 1px, transparent 1px);
      background-size: 48px 48px;
    }

    /* ── WRAPPER ── */
    .page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

    /* ── HEADER ── */
    header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 20px 48px;
      border-bottom: 1px solid var(--border);
      background: rgba(13,26,15,0.6);
      backdrop-filter: blur(20px);
    }
    .logo {
      display: flex; align-items: center; gap: 12px; text-decoration: none;
    }
    .logo-icon {
      width: 42px; height: 42px; border-radius: 10px;
      background: var(--green); display: flex; align-items: center; justify-content: center;
      border: 1.5px solid rgba(0,98,51,0.6);
    }
    .logo-text {
      font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 900;
      background: linear-gradient(135deg, var(--white), var(--gold));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .header-back {
      display: flex; align-items: center; gap: 8px;
      color: var(--muted); font-size: .85rem; font-weight: 600;
      text-decoration: none; transition: color .3s; letter-spacing: .3px;
    }
    .header-back:hover { color: var(--white); }

    /* ── MAIN CONTENT ── */
    main {
      flex: 1; display: flex; align-items: center; justify-content: center;
      padding: 48px 24px;
    }

    /* ── SCREENS ── */
    .screen { display: none; width: 100%; max-width: 520px; animation: fadeUp .5s ease both; }
    .screen.active { display: block; }

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

    /* ── ROLE SELECT ── */
    .role-title {
      font-family: 'Playfair Display', serif;
      font-size: 2rem; font-weight: 900; text-align: center;
      margin-bottom: 8px; color: var(--white);
    }
    .role-sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 40px; }

    .role-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }

    .role-card {
      display: flex; align-items: center; gap: 20px;
      background: rgba(255,255,255,0.04);
      border: 1.5px solid var(--border);
      border-radius: 14px; padding: 22px 24px;
      cursor: pointer; transition: all .3s;
      position: relative; overflow: hidden;
    }
    .role-card::before {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(0,98,51,0.1), transparent);
      opacity: 0; transition: opacity .3s;
    }
    .role-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
    .role-card:hover::before { opacity: 1; }
    .role-card.role-restaurant { border-color: rgba(201,168,76,0.3); }
    .role-card.role-restaurant:hover { border-color: var(--gold); }
    .role-card.role-restaurant::before { background: linear-gradient(135deg, rgba(201,168,76,0.08), transparent); }
    .role-card.role-driver { border-color: rgba(200,16,46,0.3); }
    .role-card.role-driver:hover { border-color: var(--red); }
    .role-card.role-driver::before { background: linear-gradient(135deg, rgba(200,16,46,0.08), transparent); }

    .role-icon {
      width: 52px; height: 52px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .role-icon.green { background: rgba(0,98,51,0.25); }
    .role-icon.gold  { background: rgba(201,168,76,0.2); }
    .role-icon.red   { background: rgba(200,16,46,0.2); }

    .role-info { flex: 1; }
    .role-name { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
    .role-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; }

    .role-arrow {
      color: var(--muted); transition: transform .3s, color .3s;
    }
    .role-card:hover .role-arrow { transform: translateX(-6px); color: var(--white); }

    /* ── AUTH TABS ── */
    .auth-header { margin-bottom: 32px; }
    .auth-back-btn {
      display: inline-flex; align-items: center; gap: 6px;
      color: var(--muted); font-size: .82rem; cursor: pointer;
      transition: color .3s; margin-bottom: 24px; background: none; border: none;
      font-family: 'Cairo', sans-serif;
    }
    .auth-back-btn:hover { color: var(--white); }

    .auth-role-badge {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 5px 14px; border-radius: 4px; margin-bottom: 16px;
      font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    }
    .badge-student  { background: rgba(0,98,51,0.2); color: #7dcc9a; border: 1px solid rgba(0,98,51,0.4); }
    .badge-restaurant { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.35); }
    .badge-driver   { background: rgba(200,16,46,0.15); color: #ff8a9a; border: 1px solid rgba(200,16,46,0.3); }

    .auth-title {
      font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900;
      color: var(--white); margin-bottom: 4px;
    }
    .auth-sub { font-size: .87rem; color: var(--muted); }

    .tabs {
      display: flex; border-bottom: 1px solid var(--border); margin-bottom: 28px; gap: 0;
    }
    .tab-btn {
      flex: 1; padding: 12px; background: none; border: none;
      font-family: 'Cairo', sans-serif; font-size: .92rem; font-weight: 600;
      color: var(--muted); cursor: pointer; transition: all .3s;
      border-bottom: 2px solid transparent; margin-bottom: -1px;
    }
    .tab-btn.active { color: var(--white); border-bottom-color: var(--green); }

    /* ── FORM ── */
    .form-body { display: none; }
    .form-body.active { display: block; }

    .form-section-title {
      font-size: .75rem; font-weight: 700; letter-spacing: 1.5px;
      text-transform: uppercase; color: var(--green); margin: 24px 0 14px;
      display: flex; align-items: center; gap: 8px;
    }
    .form-section-title::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .form-group { margin-bottom: 16px; }
    .form-group.full { grid-column: 1 / -1; }

    label {
      display: block; font-size: .8rem; font-weight: 600;
      color: rgba(255,255,255,0.65); margin-bottom: 7px; letter-spacing: .3px;
    }
    label span.req { color: var(--red); margin-right: 3px; }

    input[type="text"], input[type="email"], input[type="password"],
    input[type="tel"], input[type="number"], select, textarea {
      width: 100%; padding: 11px 14px;
      background: rgba(255,255,255,0.05);
      border: 1.5px solid var(--border);
      border-radius: 8px; color: var(--white);
      font-family: 'Cairo', sans-serif; font-size: .9rem;
      transition: border-color .3s, background .3s;
      outline: none;
      appearance: none; -webkit-appearance: none;
    }
    input:focus, select:focus, textarea:focus {
      border-color: var(--green);
      background: rgba(0,98,51,0.08);
    }
    input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.25); }
    select option { background: var(--dark2); color: var(--white); }
    textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

    /* file upload */
    .file-upload {
      border: 1.5px dashed var(--border); border-radius: 10px;
      padding: 24px; text-align: center; cursor: pointer;
      transition: all .3s; position: relative; background: rgba(255,255,255,0.03);
    }
    .file-upload:hover { border-color: var(--green); background: rgba(0,98,51,0.06); }
    .file-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
    .file-upload-icon { color: var(--green); margin-bottom: 8px; }
    .file-upload-text { font-size: .82rem; color: var(--muted); }
    .file-upload-text strong { color: var(--white); }
    .file-name { font-size: .78rem; color: #7dcc9a; margin-top: 6px; display: none; }

    /* password toggle */
    .input-wrap { position: relative; }
    .input-wrap input { padding-left: 44px; }
    .pw-toggle {
      position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
      background: none; border: none; color: var(--muted); cursor: pointer;
      transition: color .3s; padding: 0;
    }
    .pw-toggle:hover { color: var(--white); }

    /* checkbox */
    .checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
    .checkbox-group input[type="checkbox"] {
      width: 18px; height: 18px; min-width: 18px;
      border: 1.5px solid var(--border); border-radius: 4px;
      background: rgba(255,255,255,0.05); cursor: pointer;
      accent-color: var(--green); margin-top: 2px;
    }
    .checkbox-group label { font-size: .82rem; color: var(--muted); cursor: pointer; margin-bottom: 0; }
    .checkbox-group label a { color: var(--green); text-decoration: none; }

    /* submit */
    .btn-submit {
      width: 100%; padding: 14px;
      background: var(--green); color: var(--white);
      border: none; border-radius: 8px;
      font-family: 'Cairo', sans-serif; font-size: 1rem; font-weight: 700;
      cursor: pointer; transition: all .3s; letter-spacing: .4px;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      margin-top: 8px;
    }
    .btn-submit:hover { background: var(--green2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,98,51,0.35); }
    .btn-submit.gold { background: #8a6f1e; }
    .btn-submit.gold:hover { background: #7a6018; box-shadow: 0 8px 28px rgba(201,168,76,0.25); }
    .btn-submit.danger { background: var(--red); }
    .btn-submit.danger:hover { background: #a00d24; box-shadow: 0 8px 28px rgba(200,16,46,0.3); }

    /* ── SUCCESS SCREEN ── */
    .success-screen {
      text-align: center; padding: 20px 0;
    }
    .success-icon {
      width: 80px; height: 80px; border-radius: 50%;
      background: rgba(0,98,51,0.2); border: 2px solid var(--green);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 28px;
      animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
    }
    @keyframes popIn {
      from { transform: scale(0); opacity: 0; }
      to   { transform: scale(1); opacity: 1; }
    }
    .success-title {
      font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900;
      color: var(--white); margin-bottom: 10px;
    }
    .success-sub { color: var(--muted); font-size: .9rem; margin-bottom: 36px; line-height: 1.7; }
    .success-user-info {
      background: rgba(255,255,255,0.04); border: 1px solid var(--border);
      border-radius: 12px; padding: 18px 22px; margin-bottom: 28px; text-align: right;
    }
    .sui-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; }
    .sui-label { font-size: .78rem; color: var(--muted); }
    .sui-value { font-size: .88rem; font-weight: 600; color: var(--white); }

    .success-actions { display: flex; flex-direction: column; gap: 12px; }
    .btn-action {
      width: 100%; padding: 13px;
      border-radius: 8px; font-family: 'Cairo', sans-serif;
      font-size: .92rem; font-weight: 700; cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      transition: all .3s; text-decoration: none; border: none; letter-spacing: .3px;
    }
    .btn-action.primary { background: var(--green); color: var(--white); }
    .btn-action.primary:hover { background: var(--green2); transform: translateY(-2px); }
    .btn-action.secondary {
      background: rgba(255,255,255,0.06); color: var(--white);
      border: 1.5px solid var(--border);
    }
    .btn-action.secondary:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); }
    .btn-action.logout { background: rgba(200,16,46,0.12); color: #ff8a9a; border: 1.5px solid rgba(200,16,46,0.25); }
    .btn-action.logout:hover { background: rgba(200,16,46,0.2); }
    .btn-action.map-btn { background: rgba(201,168,76,0.12); color: var(--gold); border: 1.5px solid rgba(201,168,76,0.3); }
    .btn-action.map-btn:hover { background: rgba(201,168,76,0.2); }

    /* ── ERROR ── */
    .form-error {
      background: rgba(200,16,46,0.12); border: 1px solid rgba(200,16,46,0.3);
      border-radius: 8px; padding: 12px 16px;
      color: #ff8a9a; font-size: .85rem; margin-bottom: 18px; display: none;
      display: flex; align-items: center; gap: 10px;
    }
    .form-error.show { display: flex; }

    /* ── RESPONSIVE ── */
    @media (max-width: 600px) {
      header { padding: 16px 20px; }
      .form-row { grid-template-columns: 1fr; }
      main { padding: 32px 16px; }
    }

    /* scrollbar */
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--dark); }
    ::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

    /* ── LOCATION PICKER ── */
    .location-section {
      background: rgba(0,98,51,0.08);
      border: 1.5px solid rgba(0,98,51,0.3);
      border-radius: 12px;
      padding: 18px;
      margin-bottom: 16px;
    }
    .location-section-title {
      font-size: .78rem; font-weight: 700; color: #7dcc9a;
      letter-spacing: .8px; margin-bottom: 12px;
      display: flex; align-items: center; gap: 7px;
    }
    .btn-locate-auto {
      width: 100%; padding: 12px 16px;
      background: var(--green); color: var(--white);
      border: none; border-radius: 9px;
      font-family: 'Cairo', sans-serif; font-size: .88rem; font-weight: 700;
      cursor: pointer; transition: all .3s;
      display: flex; align-items: center; justify-content: center; gap: 9px;
    }
    .btn-locate-auto:hover { background: var(--green2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,98,51,0.35); }
    .btn-locate-auto:disabled { opacity: .6; cursor: not-allowed; transform: none; }
    .location-result {
      margin-top: 12px; padding: 11px 14px;
      background: rgba(0,200,80,0.08);
      border: 1px solid rgba(0,200,80,0.25);
      border-radius: 8px;
      font-size: .82rem; color: #7dcc9a;
      display: none; align-items: center; gap: 8px;
    }
    .location-result.show { display: flex; }
    .location-result.error { color: #ff8a9a; background: rgba(200,16,46,0.08); border-color: rgba(200,16,46,0.25); }
    @keyframes spin { to { transform: rotate(360deg); } }
/* ══════════════════════════════════════════
   MOBILE RESPONSIVE — login.css (full)
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  header { padding: 14px 16px !important; }
  main { padding: 24px 14px 40px !important; }
  .tabs { gap: 6px !important; padding: 4px !important; }
  .tab { padding: 8px 14px !important; font-size: .8rem !important; }
  .form-box { padding: 24px 18px !important; border-radius: 16px !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .input-wrap input { font-size: .88rem !important; }
  .btn-submit { padding: 13px !important; font-size: .92rem !important; }
  .profile-upload-area { flex-direction: column !important; align-items: center !important; text-align: center !important; }
}
