:root {
    --auth-blue: #0b6df6;
    --auth-blue-dark: #0755d5;
    --auth-green: #13a66a;
    --auth-ink: #12233f;
    --auth-muted: #6c7c93;
    --auth-line: #deE8f4;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(11,109,246,.14), transparent 23rem),
        radial-gradient(circle at 90% 88%, rgba(19,166,106,.12), transparent 23rem),
        #f2f7fd !important;
    font-family: "Cairo", system-ui, sans-serif !important;
}

.auth-shell {
    width: min(1060px, 100%);
    min-height: 625px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(19,52,92,.16);
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 5vw, 58px);
    color: #fff;
    background:
        radial-gradient(circle at 8% 105%, rgba(20,204,129,.46), transparent 18rem),
        radial-gradient(circle at 93% 4%, rgba(107,190,255,.38), transparent 22rem),
        linear-gradient(145deg, #0755d5, #0a79f4);
}

.auth-showcase::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    left: -110px;
    top: -100px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 85px rgba(255,255,255,.025);
}

.auth-brand,
.auth-showcase-copy,
.auth-features { position: relative; z-index: 1; }

.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand img { width: 56px; height: 56px; border-radius: 17px; box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.auth-brand strong { display: block; font-size: 1.12rem; font-weight: 900; }
.auth-brand small { display: block; margin-top: 2px; opacity: .76; font-size: .76rem; font-weight: 700; }

.auth-showcase-copy h1 { margin: 0 0 13px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.32; font-weight: 900; }
.auth-showcase-copy p { max-width: 510px; margin: 0; opacity: .82; line-height: 1.9; font-size: .95rem; }

.auth-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.auth-feature { padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(255,255,255,.10); backdrop-filter: blur(8px); }
.auth-feature i { display: block; margin-bottom: 6px; font-size: 1.12rem; }
.auth-feature span { font-size: .72rem; font-weight: 800; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: clamp(26px, 5vw, 58px); background: #fff; }
.auth-form-wrap { width: 100%; max-width: 390px; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 13px; padding: 6px 10px; color: var(--auth-blue-dark); border-radius: 999px; background: #eaf3ff; font-size: .7rem; font-weight: 900; }
.auth-form-wrap h2 { margin: 0 0 8px; color: var(--auth-ink); font-size: 1.65rem; font-weight: 900; }
.auth-form-wrap > p { margin: 0 0 26px; color: var(--auth-muted); font-size: .86rem; line-height: 1.8; }

.auth-panel .form-label { color: #344861; font-size: .82rem; font-weight: 800; }
.auth-panel .input-group { overflow: hidden; border: 1px solid #dbe6f2; border-radius: 13px; background: #fbfdff; }
.auth-panel .input-group:focus-within { border-color: var(--auth-blue); box-shadow: 0 0 0 4px rgba(11,109,246,.09); background: #fff; }
.auth-panel .input-group-text { min-width: 46px; justify-content: center; color: var(--auth-blue); border: 0; background: transparent; }
.auth-panel .form-control { min-height: 50px; border: 0 !important; box-shadow: none !important; background: transparent !important; }

.auth-submit,
.btn-login,
.btn-main {
    min-height: 50px;
    color: #fff !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, var(--auth-blue), var(--auth-blue-dark)) !important;
    box-shadow: 0 12px 25px rgba(11,109,246,.22) !important;
    font-weight: 900 !important;
}

.auth-submit:hover,
.btn-login:hover,
.btn-main:hover { transform: translateY(-1px); filter: brightness(1.03); }

.auth-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: #8391a5; font-size: .7rem; font-weight: 700; }
.auth-security i { color: var(--auth-green); }

.auth-mobile-brand { display: none; text-align: center; margin-bottom: 22px; }
.auth-mobile-brand img { width: 62px; height: 62px; border-radius: 19px; box-shadow: 0 12px 25px rgba(11,109,246,.20); }
.auth-mobile-brand strong { display: block; margin-top: 8px; color: var(--auth-ink); font-size: 1rem; font-weight: 900; }

body.auth-page .alert { border: 0; border-radius: 13px; font-size: .82rem; font-weight: 700; }

body.verify-modern .wrap { width: min(500px, 100%) !important; max-width: 500px !important; padding: 0 !important; }
body.verify-modern .card-glass { border: 1px solid #e1eaf5 !important; border-radius: 25px !important; background: #fff !important; box-shadow: 0 25px 65px rgba(19,52,92,.15) !important; }
body.verify-modern .logo { width: 70px !important; height: 70px !important; border-radius: 21px !important; background: linear-gradient(135deg, var(--auth-blue), var(--auth-green)) !important; }
body.verify-modern .logo img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
body.verify-modern .otp-box { border-color: #dbe6f2 !important; border-radius: 15px !important; }
body.verify-modern .otp-box:focus { border-color: var(--auth-blue) !important; box-shadow: 0 0 0 4px rgba(11,109,246,.10) !important; }
body.verify-modern .btn-soft { min-height: 45px; border-color: #dce7f4 !important; border-radius: 12px !important; background: #f8fbff !important; }

@media (max-width: 850px) {
    body.auth-page { align-items: flex-start; padding: 14px; }
    .auth-shell { min-height: calc(100dvh - 28px); grid-template-columns: 1fr; border-radius: 24px; }
    .auth-showcase { display: none; }
    .auth-panel { padding: 32px 22px; }
    .auth-mobile-brand { display: block; }
}

@media (max-width: 420px) {
    .auth-panel { align-items: flex-start; padding: 27px 18px; }
    .auth-form-wrap h2 { font-size: 1.4rem; }
    body.verify-modern .otp-box { width: 53px !important; height: 57px !important; }
}
