html { overflow-x: hidden; }
body { overflow-x: hidden; }

* { box-sizing: border-box; font-family: 'Poppins', sans-serif; }

.is-hidden { display: none !important; }

:root {
    --bg1: #6366f1;
    --bg2: #ec4899;
    --bg3: #06b6d4;
    --text: #1e293b;
    --card: rgba(255,255,255,0.15);
}

body.dark {
    --bg1: #020617;
    --bg2: #1e293b;
    --bg3: #0f172a;
    --text: #fff;
    --card: rgba(30,41,59,0.4);
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg,#f8fafc,#eef2ff,#fdf2f8);
    overflow: hidden;
}

/* ULTRA PREMIUM LIGHT BACKGROUND */
body:not(.dark) {
    background: radial-gradient(circle at 20% 30%, #e0e7ff, transparent 40%),
                radial-gradient(circle at 80% 70%, #fbcfe8, transparent 40%),
                radial-gradient(circle at 50% 50%, #cffafe, transparent 40%),
                linear-gradient(135deg,#f8fafc,#eef2ff,#fdf2f8);
}

/* KEEP DARK THEME SAME */
body.dark {
    background: linear-gradient(-45deg, #020617, #1e293b, #0f172a);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
}

/* LIGHT THEME TEXT FIX */
body:not(.dark) {
    --text: #0f172a;
}

body:not(.dark) .brand p,
body:not(.dark) .support,
body:not(.dark) .login-box h2,
body:not(.dark) .forgot,
body:not(.dark) .input-group label {
    color: #0f172a;
}

body:not(.dark) .input-group input,
body:not(.dark) .input-group select {
    background: rgba(255,255,255,0.6);
    color: #0f172a;
}

body:not(.dark) .forgot {
    opacity: 0.8;
}

body:not(.dark) .forgot:hover {
    color: #6366f1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container { display: flex; height: 100vh; }

.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    color: white;
}

.logo {
    position: relative;
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    border-radius: 24px;
    background: radial-gradient(120% 120% at 0% 0%, #ffffff 0%, #e5e7eb 40%, #c7d2fe 100%);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4), inset 0 2px 6px rgba(255,255,255,0.7);
    overflow: hidden;
    opacity: 1;
    transform: none !important;
    transition: none !important;
    flex-shrink: 0;
}


@keyframes logoIntro {
    0% { opacity: 0; transform: scale(0.5) rotate(-20deg); }
    60% { opacity: 1; transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Brand ring */
.logo::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg,#6366f1,#ec4899,#06b6d4);
    z-index: 0;
    filter: blur(6px);
    opacity: 0.9;
}

/* Inner glass */
.logo::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
    z-index: 1;
}

.logo .mark {
    position: relative;
    z-index: 2;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg,#4f46e5,#ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Signature dot like brand accent */
.logo .dot {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 12px rgba(6,182,212,0.9);
    z-index: 2;
}

@keyframes logoMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brand-title {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 8px;
    position: relative;
    background: linear-gradient(135deg,#4f46e5,#ec4899,#06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

/* Dark theme premium gradient */
body.dark .brand-title {
    background: linear-gradient(135deg,#ffffff,#c7d2fe,#ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(255,255,255,0.25);
}

/* Dark theme premium text */
body.dark .brand-title {
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255,255,255,0.25);
}

/* subtle luxury underline accent */
.brand-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60%;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(90deg,#6366f1,#ec4899);
    opacity: 0.9;
}

/* Dark theme override for better contrast */
body.dark .brand-title {
    background: linear-gradient(90deg,#ffffff,#c7d2fe,#ec4899,#06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* cinematic reveal */
@keyframes cinematicReveal {
    0% { opacity: 0; transform: translateY(40px) scale(0.9); filter: blur(10px); }
    60% { opacity: 1; transform: translateY(-5px) scale(1.05); filter: blur(0); }
    100% { transform: translateY(0) scale(1); }
}

/* shine sweep */
.brand-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 120%; }
    100% { left: 120%; }
}

@keyframes textGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.brand p { opacity: 0.9; }

.tagline {
    margin-top: 8px;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
    color: #64748b;
}

.tagline span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.dark .tagline {
    color: rgba(255,255,255,0.7);
}

body.dark .tagline {
    color: rgba(255,255,255,0.7);
}

.support { font-size: 18px; }
.support p { word-break: break-word; }
.support--below { display: none; }

.right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* PARTICLES */
.right::before, .right::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.right::before {
    width: 300px; height: 300px;
    background: #6366f1;
    top: 20%; left: 20%;
}

.right::after {
    width: 250px; height: 250px;
    background: #ec4899;
    bottom: 15%; right: 15%;
}

.login-box {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(30px);
    background: var(--card);
    padding: 45px;
    border-radius: 25px;
    width: min(390px, calc(100vw - 40px));
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.22);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.login-box h2 { margin-bottom: 25px; }

.login-box.is-otp-step {
    transform: translateY(-4px);
    box-shadow: 0 38px 95px rgba(0,0,0,0.42);
    border-color: rgba(6,182,212,0.42);
}

.login-box.is-otp-step .input-group:not(.role-dropdown) input:disabled,
.login-box.is-otp-step .role-trigger:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.login-box.is-otp-step .login-credential-field input + label {
    top: -12px;
    transform: translateY(0) scale(0.92);
    opacity: 1;
    color: #4f46e5;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(15,23,42,0.12);
    box-shadow: 0 14px 40px rgba(2,6,23,0.12);
}

body.dark .login-box.is-otp-step .login-credential-field input + label {
    color: #c7d2fe;
    background: rgba(2,6,23,0.45);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 18px 55px rgba(0,0,0,0.55);
}

.login-box.is-otp-step .forgot {
    display: none;
}

.otp-panel {
    position: relative;
    isolation: isolate;
    margin: 4px 0 18px;
    padding: 18px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08)),
        linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.14));
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 24px 65px rgba(15,23,42,0.2);
    animation: otpPanelIn 0.42s ease both;
    overflow: hidden;
}

body:not(.dark) .otp-panel {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.68)),
        linear-gradient(135deg, rgba(99,102,241,0.12), rgba(6,182,212,0.13));
    border-color: rgba(99,102,241,0.18);
    box-shadow: 0 24px 60px rgba(15,23,42,0.16);
}

body.dark .otp-panel {
    background:
        linear-gradient(135deg, rgba(15,23,42,0.78), rgba(30,41,59,0.56)),
        linear-gradient(135deg, rgba(99,102,241,0.18), rgba(6,182,212,0.16));
    border-color: rgba(255,255,255,0.16);
}

.otp-panel__glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.42), transparent);
    transform: translateX(-120%);
    animation: otpSweep 2.6s ease-in-out infinite;
}

.otp-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.otp-panel__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #06b6d4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.otp-panel h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
}

.otp-panel__badge {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg,#6366f1,#06b6d4);
    box-shadow: 0 16px 34px rgba(6,182,212,0.34);
}

.otp-panel__copy {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.82;
}

.otp-input-wrap {
    position: relative;
}

.otp-input {
    width: 100%;
    height: 58px;
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 16px;
    outline: none;
    color: var(--text);
    background: rgba(255,255,255,0.22);
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 10px;
    padding: 0 12px 0 22px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body:not(.dark) .otp-input {
    background: rgba(255,255,255,0.82);
}

.otp-input:focus {
    border-color: rgba(6,182,212,0.75);
    box-shadow: 0 0 0 4px rgba(6,182,212,0.13), 0 18px 45px rgba(6,182,212,0.18);
}

.otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.otp-link {
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.72;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.otp-link:hover {
    opacity: 1;
    color: #06b6d4;
    transform: translateY(-1px);
}

.otp-link:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.otp-link--strong {
    color: #6366f1;
    opacity: 1;
}

@keyframes otpPanelIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes otpSweep {
    0% { transform: translateX(-120%); opacity: 0; }
    35% { opacity: 0.7; }
    70%, 100% { transform: translateX(120%); opacity: 0; }
}

.input-group { position: relative; margin-bottom: 22px; }

/* show password icon */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    z-index: 10;
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    color: inherit;
    touch-action: manipulation;
    pointer-events: auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
}

.toggle-password:hover {
    opacity: 1;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.2);
    color: var(--text);
}

.password-group input {
    padding-right: 44px;
}

.password-group {
    position: relative;
}

.password-group input {
    position: relative;
    z-index: 1;
}

/* ===== Premium Select Dropdown ===== */
.input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 40px;
    border: 2px solid transparent;
    transition: 0.3s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

/* when clicking / open */
.input-group select:focus {
    border: 2px solid #6366f1;
    background-color: rgba(99,102,241,0.1);
    box-shadow: 0 0 12px rgba(99,102,241,0.4);
}

/* hover */
.input-group select:hover {
    border: 2px solid #ec4899;
}

/* Light theme refinement */
body:not(.dark) .input-group select {
    background-color: rgba(255,255,255,0.85);
}

/* active class via JS */
.input-group select.active {
    border: 2px solid #06b6d4;
    background-color: rgba(6,182,212,0.1);
    box-shadow: 0 0 12px rgba(6,182,212,0.4);
}

.input-group label {
    position: absolute;
    left: 14px; top: 14px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    opacity: 0.78;
    background: transparent;
    pointer-events: none;
    transform-origin: left top;
    transform: translateY(0) scale(1);
    transition: top 0.22s ease, transform 0.22s ease, color 0.22s ease, background 0.22s ease,
        box-shadow 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -12px;
    transform: translateY(0) scale(0.92);
    opacity: 1;
    color: var(--text);
    border: 1px solid transparent;
}

body:not(.dark) .input-group input:focus + label,
body:not(.dark) .input-group input:valid + label {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.12);
}

body.dark .input-group input:focus + label,
body.dark .input-group input:valid + label {
    background: rgba(2, 6, 23, 0.45);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

/* Per-field premium accent colors */
.input-group input#hotelRefNo:focus + label,
.input-group input#hotelRefNo:valid + label {
    color: #6366f1;
    box-shadow: 0 18px 55px rgba(99, 102, 241, 0.22);
}

.input-group input#user_name:focus + label,
.input-group input#user_name:valid + label {
    color: #06b6d4;
    box-shadow: 0 18px 55px rgba(6, 182, 212, 0.22);
}

.input-group input#password:focus + label,
.input-group input#password:valid + label {
    color: #ec4899;
    box-shadow: 0 18px 55px rgba(236, 72, 153, 0.22);
}

.login-btn {
    width: 100%; padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg,#6366f1,#ec4899);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    transform: scale(1.05);
}

.login-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
    transform: none;
}

.login-btn.is-processing {
    position: relative;
    cursor: not-allowed;
    opacity: 0.9;
    transform: none;
}

.login-btn.is-processing::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.55);
    border-top-color: rgba(255,255,255,0.1);
    display: inline-block;
    margin-left: 10px;
    vertical-align: -3px;
    animation: trishaSpin 0.8s linear infinite;
}

body:not(.dark) .login-btn.is-processing::after {
    border-color: rgba(15,23,42,0.4);
    border-top-color: rgba(15,23,42,0.12);
}

@keyframes trishaSpin {
    to { transform: rotate(360deg); }
}

.otp-reset-btn {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(99,102,241,0.26);
    background: rgba(255,255,255,0.18);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body:not(.dark) .otp-reset-btn {
    background: rgba(255,255,255,0.72);
}

body.dark .otp-reset-btn {
    border-color: rgba(255,255,255,0.16);
    background: rgba(15,23,42,0.44);
}

.login-box.is-otp-step .otp-reset-btn {
    display: block;
    animation: otpPanelIn 0.28s ease both;
}

.otp-reset-btn:hover {
    border-color: rgba(6,182,212,0.62);
    background: rgba(6,182,212,0.12);
    box-shadow: 0 16px 36px rgba(6,182,212,0.13);
    transform: translateY(-1px);
}

.otp-reset-btn:active {
    transform: translateY(0);
}

.forgot {
    margin-top: 15px;
    text-align: center;
    cursor: pointer;
}

.theme-toggle {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 1000;
    cursor: pointer;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: grid;
    place-items: center;
    color: var(--text);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

body.dark .theme-toggle {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 22px 55px rgba(0,0,0,0.55);
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 55px rgba(0,0,0,0.22);
}

.theme-toggle:active { transform: translateY(0); }

.theme-toggle:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.75);
    outline-offset: 3px;
}

/* ===== Custom Role Dropdown (attractive) ===== */
.role-dropdown { position: relative; }

.role-dropdown {
    --role-accent: #6366f1;
    --role-accent-rgb: 99, 102, 241;
    --role-accent2: #ec4899;
    --role-accent2-rgb: 236, 72, 153;
}

.role-dropdown[data-role="admin"] { --role-accent: #f59e0b; --role-accent-rgb: 245, 158, 11; --role-accent2: #a855f7; --role-accent2-rgb: 168, 85, 247; }
.role-dropdown[data-role="captain"] { --role-accent: #06b6d4; --role-accent-rgb: 6, 182, 212; --role-accent2: #6366f1; --role-accent2-rgb: 99, 102, 241; }
.role-dropdown[data-role="waiter"] { --role-accent: #ec4899; --role-accent-rgb: 236, 72, 153; --role-accent2: #fb7185; --role-accent2-rgb: 251, 113, 133; }
.role-dropdown[data-role="kitchen"] { --role-accent: #f97316; --role-accent-rgb: 249, 115, 22; --role-accent2: #ef4444; --role-accent2-rgb: 239, 68, 68; }
.role-dropdown[data-role="cashier"] { --role-accent: #22c55e; --role-accent-rgb: 34, 197, 94; --role-accent2: #06b6d4; --role-accent2-rgb: 6, 182, 212; }
.role-dropdown[data-role="accountant"] { --role-accent: #6366f1; --role-accent-rgb: 99, 102, 241; --role-accent2: #22c55e; --role-accent2-rgb: 34, 197, 94; }
.role-dropdown[data-role="manager"] { --role-accent: #0ea5e9; --role-accent-rgb: 14, 165, 233; --role-accent2: #f59e0b; --role-accent2-rgb: 245, 158, 11; }

.role-dropdown select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.role-trigger {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid transparent;
    outline: none;
    background: rgba(255,255,255,0.2);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.25s ease;
}

body:not(.dark) .role-trigger {
    background: rgba(255,255,255,0.6);
    color: #0f172a;
}

.role-trigger::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 12px;
    flex: 0 0 8px;
    border-right: 2px solid var(--role-accent);
    border-bottom: 2px solid var(--role-accent);
    transform: rotate(45deg);
    opacity: 0.95;
    transition: transform 0.2s ease;
}

.role-dropdown.is-open .role-trigger {
    border-color: var(--role-accent);
    background-color: rgba(var(--role-accent-rgb), 0.10);
    box-shadow: 0 0 12px rgba(var(--role-accent-rgb), 0.35);
}

.role-dropdown.is-open .role-trigger::after { transform: rotate(-135deg); }

.role-trigger:hover { border-color: var(--role-accent2); }

.role-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    margin: 0;
    padding: 8px;
    list-style: none;
    border-radius: 16px;
    z-index: 50;
    max-height: 260px;
    overflow: auto;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 30px 80px rgba(0,0,0,0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.dark .role-list {
    background: rgba(2, 6, 23, 0.78);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}

.role-option {
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

body:not(.dark) .role-option { color: #0f172a; }

.role-option:hover { background: rgba(var(--role-accent-rgb), 0.14); }

.role-option:active { transform: scale(0.99); }

.role-option.is-selected {
    background: linear-gradient(
        135deg,
        rgba(var(--role-accent-rgb), 0.22),
        rgba(var(--role-accent2-rgb), 0.18)
    );
    border: 1px solid rgba(var(--role-accent-rgb), 0.25);
}



/* ================= BRAND KIT ================= */

/* 🎨 Colors */
:root {
  --primary: #6366f1;
  --secondary: #ec4899;
  --accent: #06b6d4;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

/* 🔤 Typography */
.h1 { font-size: 42px; font-weight: 600; }
.h2 { font-size: 28px; font-weight: 600; }
.text-muted { opacity: 0.7; }

/* 🔘 Buttons */
.btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99,102,241,0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

/* 🧾 Cards */
.card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
}

/* 🔲 Inputs */
.input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--text);
}

/* 🔔 Badge */
.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--accent);
  color: white;
}

/* ✨ Utility */
.flex { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }
.space-between { display: flex; justify-content: space-between; }



/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
        padding-bottom: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .left {
        padding: 30px 20px;
        align-items: center;
        text-align: center;
    }

    .brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-left: auto;
        margin-right: auto;
    }

    .brand-title {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .logo {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }

    .support { font-size: 14px; }

    .support--side { display: none; }

    .support--below {
        display: block;
        margin: 12px auto 22px;
        text-align: center;
        padding: 0 20px;
    }

    .right {
        padding: 20px;
    }

    .login-box {
        width: 100%;
        max-width: 380px;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .input-group input,
    .input-group select {
        padding: 12px;
    }

    .login-btn {
        padding: 12px;
        font-size: 15px;
    }

    .otp-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .otp-panel h3 {
        font-size: 20px;
    }

    .otp-input {
        height: 54px;
        font-size: 24px;
        letter-spacing: 8px;
        padding-left: 20px;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        font-size: 18px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 28px;
    }

    .login-box {
        padding: 25px 15px;
    }

    .otp-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .otp-input {
        font-size: 22px;
        letter-spacing: 6px;
        padding-left: 18px;
    }

    .support {
        font-size: 13px;
    }
}
