:root {
    --auth-primary: #6d3df4;
    --auth-primary-dark: #3d2b91;
    --auth-accent: #00b894;
    --auth-warning: #ffb703;
    --auth-bg: #f3f7ff;
    --auth-surface: #ffffff;
    --auth-text: #111827;
    --auth-muted: #64748b;
    --auth-border: #dce5f4;
    --auth-danger: #dc2626;
    --auth-success: #047857;
    --auth-shadow: 0 24px 70px rgba(30, 41, 59, 0.14);
}

* {
    box-sizing: border-box;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-text);
    background:
        radial-gradient(circle at top left, rgba(109, 61, 244, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(0, 184, 148, 0.16), transparent 32%),
        var(--auth-bg);
    font-family: "Inter", sans-serif;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
}

.auth-hero {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 100vh;
    flex-direction: column;
    padding: 28px 42px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(18, 24, 52, 0.92), rgba(74, 45, 186, 0.92)),
        url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.auth-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border: 34px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.register-hero {
    background:
        linear-gradient(135deg, rgba(17, 92, 129, 0.92), rgba(84, 45, 186, 0.9)),
        url("https://images.unsplash.com/photo-1563013544-824ae1b704d3?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.auth-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #ffffff;
    text-decoration: none;
}

.auth-brand span,
.auth-logo-mini {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.24);
    font-size: 22px;
    font-weight: 800;
}

.auth-brand strong {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    line-height: 1;
}

.auth-brand small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-nav-actions a {
    padding: 10px 15px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: auto 0;
}

.auth-kicker {
    display: inline-flex;
    padding: 8px 12px;
    color: #e0f2fe;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-hero h1 {
    max-width: 620px;
    margin: 24px 0 16px;
    font-family: "Poppins", sans-serif;
    font-size: 50px;
    line-height: 1.08;
}

.auth-hero p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.8;
}

.auth-feature-grid {
    display: grid;
    max-width: 590px;
    margin-top: 34px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.auth-feature-grid div {
    display: flex;
    min-height: 96px;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.auth-feature-grid i {
    color: #a7f3d0;
    font-size: 22px;
}

.auth-card-wrap {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.auth-card {
    width: min(100%, 480px);
    padding: 28px;
    border: 1px solid rgba(220, 229, 244, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
}

.register-card {
    width: min(100%, 720px);
}

.auth-card-header {
    margin-bottom: 22px;
    text-align: center;
}

.auth-card-header .auth-logo-mini {
    margin: 0 auto 14px;
    color: #ffffff;
}

.auth-card-header h2 {
    margin: 0 0 7px;
    font-family: "Poppins", sans-serif;
    font-size: 28px;
}

.auth-card-header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth-alert {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
}

.auth-alert div {
    display: grid;
    gap: 4px;
}

.auth-alert.success {
    color: var(--auth-success);
    border: 1px solid rgba(16, 185, 129, 0.24);
    background: #ecfdf5;
}

.auth-alert.danger {
    color: var(--auth-danger);
    border: 1px solid rgba(220, 38, 38, 0.22);
    background: #fef2f2;
}

.auth-tabs {
    display: grid;
    margin-bottom: 20px;
    padding: 5px;
    grid-template-columns: 1fr 1fr;
    border-radius: 17px;
    background: #edf2fb;
}

.auth-tab {
    min-height: 43px;
    color: var(--auth-muted);
    border: 0;
    border-radius: 13px;
    background: transparent;
    font-weight: 900;
    cursor: pointer;
}

.auth-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-primary), #4f46e5);
    box-shadow: 0 10px 24px rgba(109, 61, 244, 0.25);
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.active {
    display: block;
}

.auth-label {
    display: block;
    margin: 14px 0 7px;
    color: #243049;
    font-size: 13px;
    font-weight: 900;
}

.auth-input-group {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border: 1px solid var(--auth-border);
    border-radius: 15px;
    background: #f8fbff;
    transition: all 0.2s ease;
}

.auth-input-group:focus-within {
    border-color: var(--auth-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(109, 61, 244, 0.11);
}

.auth-input-group i {
    color: #94a3b8;
}

.auth-input-group input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 700;
}

.auth-input-group input::placeholder {
    color: #9aa9bd;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 18px;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 700;
}

.auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-primary), #4f46e5);
    box-shadow: 0 15px 34px rgba(109, 61, 244, 0.28);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.auth-submit.secondary {
    margin-top: 14px;
    color: var(--auth-primary);
    border: 1px solid rgba(109, 61, 244, 0.2);
    background: #f3f0ff;
    box-shadow: none;
}

.auth-mini-action {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--auth-primary);
    border: 1px solid rgba(109, 61, 244, 0.2);
    border-radius: 14px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.otp-verify-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--auth-border);
}

.auth-help {
    margin: 9px 0 15px;
    color: var(--auth-muted);
    font-size: 13px;
}

.otp-channel-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(109, 61, 244, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(109, 61, 244, 0.08),
            rgba(0, 184, 148, 0.06)
        );
}

.otp-channel-box.compact {
    margin-top: 0;
    margin-bottom: 16px;
}

.otp-channel-head {
    display: grid;
    gap: 4px;
    margin-bottom: 13px;
}

.otp-channel-head strong {
    color: #1f2a44;
    font-size: 14px;
    font-weight: 900;
}

.otp-channel-head span {
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 700;
}

.otp-channel-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.otp-channel-btn {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 15px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.otp-channel-btn:hover {
    transform: translateY(-1px);
}

.otp-channel-btn.sms {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.otp-channel-btn.whatsapp {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 12px 26px rgba(5, 150, 105, 0.22);
}

.otp-modal-open {
    overflow: hidden;
}

.otp-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 22px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s ease;
}

.otp-modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.otp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(6px);
}

.otp-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.32);
    text-align: center;
    transform: translateY(16px) scale(0.98);
    transition: all 0.22s ease;
}

.otp-modal.show .otp-modal-card {
    transform: translateY(0) scale(1);
}

.otp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: 1px solid var(--auth-border);
    border-radius: 13px;
    background: #f8fbff;
    cursor: pointer;
}

.otp-modal-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #ffffff;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--auth-primary), #4f46e5);
    box-shadow: 0 18px 35px rgba(109, 61, 244, 0.24);
    font-size: 25px;
}

.otp-modal-card h3 {
    margin: 0 0 8px;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
}

.otp-modal-card p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.7;
}

.otp-modal-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0;
    padding: 13px 15px;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    background: #f8fbff;
    text-align: left;
}

.otp-modal-user span {
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.otp-modal-user strong {
    color: var(--auth-text);
    font-size: 14px;
    word-break: break-word;
}

.otp-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.otp-modal-note {
    margin-top: 16px;
    padding: 11px 13px;
    color: #475569;
    border: 1px dashed rgba(109, 61, 244, 0.28);
    border-radius: 14px;
    background: rgba(109, 61, 244, 0.06);
    font-size: 12px;
    font-weight: 800;
}

.auth-support-strip {
    position: fixed;
    z-index: 10;
    right: 24px;
    bottom: 18px;
    display: flex;
    max-width: calc(100% - 48px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(220, 229, 244, 0.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.auth-support-strip a {
    color: var(--auth-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.auth-support-strip a:hover {
    color: var(--auth-primary);
}

.auth-register-note {
    margin-top: 18px;
    color: var(--auth-muted);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.auth-register-note a {
    color: var(--auth-primary);
    font-weight: 900;
    text-decoration: none;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.auth-grid-full {
    grid-column: 1 / -1;
}

@media (max-width: 1080px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: auto;
    }

    .auth-hero-content {
        padding: 80px 0 70px;
    }

    .auth-card-wrap {
        min-height: auto;
    }
}

@media (max-width: 680px) {
    .auth-hero,
    .auth-card-wrap {
        padding: 20px;
    }

    .auth-hero h1 {
        font-size: 34px;
    }

    .auth-feature-grid,
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .otp-channel-actions {
        grid-template-columns: 1fr;
    }

    .auth-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-support-strip {
        position: static;
        max-width: none;
        margin: 0 20px 20px;
        border-radius: 18px;
    }
}


/* =========================================================
   White-label professional login slider (max 3 images)
   ========================================================= */
.auth-brand-image,
.auth-logo-image{
    overflow:hidden;
    background:#fff!important;
}
.auth-brand-image img,
.auth-logo-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:3px;
}

.auth-hero.has-login-slider{
    background:#111827;
}
.auth-hero.has-login-slider::after{
    z-index:3;
    pointer-events:none;
}
.auth-hero.has-login-slider .auth-nav{
    z-index:12;
}
.auth-login-slider{
    position:absolute;
    z-index:1;
    inset:0;
    overflow:hidden;
    background:#111827;
}
.auth-login-slide{
    position:absolute;
    inset:0;
    overflow:hidden;
    opacity:0;
    visibility:hidden;
    transform:scale(1.018);
    transition:opacity .75s ease,visibility .75s ease,transform 6s ease;
}
.auth-login-slide.active{
    opacity:1;
    visibility:visible;
    transform:scale(1);
}
.auth-slide-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    filter:saturate(1.04) contrast(1.02);
}
.auth-slide-shade{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 78% 18%,rgba(124,58,237,.16),transparent 31%),
        linear-gradient(90deg,rgba(9,16,38,.93) 0%,rgba(20,24,66,.79) 46%,rgba(20,24,66,.38) 74%,rgba(7,12,28,.42) 100%),
        linear-gradient(180deg,rgba(4,8,22,.18),rgba(5,10,28,.64));
}
.auth-login-slide .auth-slide-content{
    position:absolute;
    z-index:5;
    left:6.2%;
    right:8%;
    bottom:15%;
    max-width:650px;
    margin:0;
}
.auth-slide-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border:1px solid rgba(255,255,255,.20);
    border-radius:999px;
    background:rgba(255,255,255,.10);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
    backdrop-filter:blur(12px);
    color:#f3f4ff;
    font-size:11px;
    font-weight:900;
    letter-spacing:.055em;
    text-transform:uppercase;
}
.auth-login-slide h1{
    max-width:610px;
    margin:20px 0 12px;
    color:#fff;
    font-size:clamp(38px,4vw,58px);
    line-height:1.06;
    letter-spacing:-.035em;
    text-shadow:0 8px 30px rgba(0,0,0,.22);
}
.auth-login-slide p{
    max-width:560px;
    color:rgba(255,255,255,.82);
    font-size:15px;
    line-height:1.75;
    text-shadow:0 3px 16px rgba(0,0,0,.22);
}
.auth-slide-pills{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:22px;
}
.auth-slide-pills span{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:9px 12px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:12px;
    background:rgba(255,255,255,.09);
    backdrop-filter:blur(10px);
    color:#fff;
    font-size:11px;
    font-weight:800;
}
.auth-slide-pills i{color:#86efac}
.auth-slider-controlbar{
    position:absolute;
    z-index:10;
    left:6.2%;
    right:6.2%;
    bottom:6.3%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}
.auth-slider-dots{
    position:static;
    display:flex;
    align-items:center;
    gap:8px;
}
.auth-slider-dots button{
    width:8px;
    height:8px;
    padding:0;
    border:0;
    border-radius:999px;
    background:rgba(255,255,255,.42);
    cursor:pointer;
    transition:width .25s ease,background .25s ease,transform .25s ease;
}
.auth-slider-dots button:hover{transform:scale(1.15)}
.auth-slider-dots button.active{
    width:34px;
    background:#fff;
}
.auth-slider-count{
    display:flex;
    align-items:baseline;
    gap:6px;
    color:rgba(255,255,255,.62);
    font-size:11px;
    font-style:normal;
}
.auth-slider-count strong{
    color:#fff;
    font-size:18px;
    font-weight:900;
}
.auth-slider-count em{font-style:normal;font-weight:800}
.auth-slider-progress{
    position:absolute;
    z-index:10;
    left:0;
    right:0;
    bottom:0;
    height:3px;
    overflow:hidden;
    background:rgba(255,255,255,.13);
}
.auth-slider-progress span{
    display:block;
    width:0;
    height:100%;
    background:linear-gradient(90deg,#a78bfa,#fff,#5eead4);
}
@keyframes authSliderProgress{from{width:0}to{width:100%}}

@media (max-width:1080px){
    .auth-hero.has-login-slider{min-height:560px}
    .auth-login-slide .auth-slide-content{left:5%;right:5%;bottom:17%;max-width:600px}
    .auth-slider-controlbar{left:5%;right:5%;bottom:7%}
}
@media (max-width:680px){
    .auth-hero.has-login-slider{min-height:500px;padding:20px}
    .auth-login-slide .auth-slide-content{left:20px;right:20px;bottom:16%;padding:0}
    .auth-login-slide h1{font-size:34px}
    .auth-login-slide p{font-size:13px;line-height:1.6}
    .auth-slide-pills span:nth-child(3){display:none}
    .auth-slider-controlbar{left:20px;right:20px;bottom:6%}
}

/* =========================================================
   Inline Login OTP Flow - no popup/modal
   ========================================================= */
.auth-login-stage{
    margin-top: 6px;
}

.auth-stage-heading{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0 0 16px;
}

.auth-stage-number{
    display:inline-grid;
    width:38px;
    height:38px;
    flex:0 0 38px;
    place-items:center;
    border:1px solid rgba(109,61,244,.18);
    border-radius:13px;
    color:var(--auth-primary);
    background:rgba(109,61,244,.08);
    font-size:13px;
    font-weight:900;
}

.auth-stage-number.done{
    color:#047857;
    border-color:rgba(16,185,129,.20);
    background:#ecfdf5;
}

.auth-stage-heading>div{
    display:grid;
    gap:3px;
    min-width:0;
}

.auth-stage-heading strong{
    color:var(--auth-text);
    font-size:14px;
    font-weight:900;
}

.auth-stage-heading small{
    color:var(--auth-muted);
    font-size:12px;
    line-height:1.45;
}

.auth-password-form{
    padding-bottom:4px;
}

.auth-inline-otp{
    position:relative;
    margin-top:22px;
    padding:20px;
    border:1px solid rgba(109,61,244,.18);
    border-radius:22px;
    background:
        radial-gradient(circle at top right, rgba(79,70,229,.08), transparent 34%),
        linear-gradient(145deg,#fbfbff 0%,#f7faff 55%,#f7fffc 100%);
    box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.auth-inline-otp::before{
    content:"";
    position:absolute;
    top:-1px;
    left:22px;
    right:22px;
    height:3px;
    border-radius:999px;
    background:linear-gradient(90deg,#4f46e5,#7c3aed,#10b981);
}

.otp-stage-heading{
    margin-bottom:14px;
}

.auth-verified-account{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:18px;
    padding:13px 14px;
    border:1px solid rgba(16,185,129,.18);
    border-radius:16px;
    background:#f0fdf4;
}

.auth-verified-account>span{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#047857;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.03em;
    white-space:nowrap;
}

.auth-verified-account>div{
    display:grid;
    min-width:0;
    text-align:right;
}

.auth-verified-account small{
    color:#64748b;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}

.auth-verified-account strong{
    overflow:hidden;
    color:#0f172a;
    font-size:13px;
    font-weight:900;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.auth-verified-account em{
    margin-top:2px;
    color:#64748b;
    font-size:11px;
    font-style:normal;
    font-weight:700;
}

.otp-inline-options{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin:8px 0 14px;
}

.otp-inline-option{
    position:relative;
    display:flex;
    min-height:88px;
    align-items:center;
    gap:11px;
    padding:13px 13px 13px 12px;
    overflow:hidden;
    border:1.5px solid #dfe6f3;
    border-radius:18px;
    background:#fff;
    cursor:pointer;
    transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease,background .18s ease;
}

.otp-inline-option:hover{
    transform:translateY(-1px);
    border-color:rgba(79,70,229,.34);
    box-shadow:0 10px 22px rgba(15,23,42,.07);
}

.otp-inline-option input{
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
    pointer-events:none;
}

.otp-inline-option.sms.selected{
    border-color:#4f46e5;
    background:linear-gradient(135deg,#eef2ff,#fff);
    box-shadow:0 10px 24px rgba(79,70,229,.12);
}

.otp-inline-option.whatsapp.selected{
    border-color:#10b981;
    background:linear-gradient(135deg,#ecfdf5,#fff);
    box-shadow:0 10px 24px rgba(16,185,129,.12);
}

.otp-inline-check{
    position:absolute;
    top:9px;
    right:9px;
    display:grid;
    width:20px;
    height:20px;
    place-items:center;
    border:1.5px solid #cbd5e1;
    border-radius:999px;
    color:transparent;
    background:#fff;
    font-size:9px;
    transition:.18s ease;
}

.otp-inline-option.sms.selected .otp-inline-check{
    color:#fff;
    border-color:#4f46e5;
    background:#4f46e5;
}

.otp-inline-option.whatsapp.selected .otp-inline-check{
    color:#fff;
    border-color:#10b981;
    background:#10b981;
}

.otp-inline-icon{
    display:grid;
    width:46px;
    height:46px;
    flex:0 0 46px;
    place-items:center;
    border-radius:15px;
    font-size:18px;
}

.otp-inline-option.sms .otp-inline-icon{
    color:#4f46e5;
    background:#eef2ff;
}

.otp-inline-option.whatsapp .otp-inline-icon{
    color:#059669;
    background:#ecfdf5;
}

.otp-inline-copy{
    display:grid;
    gap:4px;
    min-width:0;
    padding-right:15px;
}

.otp-inline-copy strong{
    color:#172033;
    font-size:13px;
    font-weight:900;
}

.otp-inline-copy small{
    color:#718096;
    font-size:10.5px;
    line-height:1.45;
}

.otp-send-submit{
    margin-top:0;
}

.otp-sent-status{
    display:flex;
    align-items:flex-start;
    gap:11px;
    margin-top:16px;
    padding:13px 14px;
    color:#047857;
    border:1px solid rgba(16,185,129,.18);
    border-radius:15px;
    background:#ecfdf5;
}

.otp-sent-status>i{
    margin-top:2px;
    font-size:16px;
}

.otp-sent-status div{
    display:grid;
    gap:3px;
}

.otp-sent-status strong{
    font-size:12px;
    font-weight:900;
}

.otp-sent-status small{
    color:#4b6f62;
    font-size:11px;
    line-height:1.45;
}

.otp-inline-verify-form{
    margin-top:17px;
    padding-top:17px;
    border-top:1px dashed #d6ddec;
}

.otp-entry-group input{
    letter-spacing:.24em;
    font-size:17px;
    font-weight:900;
}

.otp-inline-verify-form:not(.ready){
    opacity:.66;
}

.verify-login-submit:disabled{
    cursor:not-allowed;
    opacity:.58;
    box-shadow:none;
    transform:none;
}

.otp-help-text{
    line-height:1.5;
}

@media (max-width:680px){
    .auth-inline-otp{
        padding:16px;
        border-radius:18px;
    }

    .otp-inline-options{
        grid-template-columns:1fr;
    }

    .auth-verified-account{
        align-items:flex-start;
        flex-direction:column;
    }

    .auth-verified-account>div{
        width:100%;
        text-align:left;
    }
}

/* =========================================================
   Professional Inline OTP Login v2
   Scoped only to login page so register UI remains unchanged
   ========================================================= */
.login-page .auth-card-wrap{
    padding:32px 38px;
    background:
        radial-gradient(circle at 80% 12%, rgba(99,102,241,.10), transparent 26%),
        radial-gradient(circle at 18% 86%, rgba(16,185,129,.08), transparent 25%);
}

.login-page .auth-login-card{
    width:min(100%,520px);
    padding:26px 28px 22px;
    border:1px solid rgba(214,224,241,.92);
    border-radius:30px;
    background:rgba(255,255,255,.95);
    box-shadow:0 28px 80px rgba(30,41,59,.14);
}

.login-page .login-card-header{
    margin-bottom:18px;
}

.login-page .login-card-header .auth-logo-mini{
    width:58px;
    height:58px;
    margin-bottom:12px;
    border-radius:19px;
    box-shadow:0 12px 28px rgba(79,70,229,.16);
}

.login-page .login-card-header h2{
    font-size:27px;
    line-height:1.15;
}

.login-page .login-card-header p{
    max-width:390px;
    margin:7px auto 0;
    font-size:13px;
    line-height:1.55;
}

.login-progress{
    display:grid;
    grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);
    align-items:center;
    margin:0 0 20px;
    padding:12px 14px;
    border:1px solid #e7ebf4;
    border-radius:18px;
    background:#f8faff;
}

.login-progress-step{
    display:flex;
    min-width:0;
    align-items:center;
    gap:9px;
    color:#94a3b8;
}

.login-progress-step>span{
    display:grid;
    width:32px;
    height:32px;
    flex:0 0 32px;
    place-items:center;
    border:1px solid #dbe3ef;
    border-radius:11px;
    background:#fff;
    font-size:11px;
    font-weight:900;
}

.login-progress-step>div{display:grid;gap:1px;min-width:0}
.login-progress-step strong{color:#64748b;font-size:11px;font-weight:900}
.login-progress-step small{color:#94a3b8;font-size:9.5px;white-space:nowrap}

.login-progress-step.active>span{
    color:#fff;
    border-color:#5b4df5;
    background:linear-gradient(135deg,#7c3aed,#4f46e5);
    box-shadow:0 8px 18px rgba(79,70,229,.20);
}
.login-progress-step.active strong{color:#312e81}

.login-progress-step.complete>span{
    color:#fff;
    border-color:#10b981;
    background:linear-gradient(135deg,#059669,#10b981);
}
.login-progress-step.complete strong{color:#047857}

.login-progress-line{
    height:2px;
    border-radius:999px;
    background:#dbe3ef;
}
.login-progress-line.complete{background:linear-gradient(90deg,#10b981,#6366f1)}

.login-page .professional-login-form .auth-label{
    margin-top:12px;
}

.login-page .professional-login-form .auth-input-group{
    min-height:52px;
    border-radius:15px;
    background:#fbfcff;
}

.professional-options{margin:13px 0 16px!important}
.remember-check{display:inline-flex!important;align-items:center;gap:8px;cursor:pointer}
.remember-check input{position:absolute;opacity:0;pointer-events:none}
.remember-check span{
    display:grid;width:18px;height:18px;place-items:center;
    border:1.5px solid #cbd5e1;border-radius:5px;background:#fff;
}
.remember-check input:checked+span{border-color:#5b4df5;background:#5b4df5}
.remember-check input:checked+span:after{content:"✓";color:#fff;font-size:11px;font-weight:900}

.login-page .auth-submit{
    min-height:50px;
    border-radius:15px;
    transition:transform .18s ease,box-shadow .18s ease;
}
.login-page .auth-submit:hover{transform:translateY(-1px);box-shadow:0 18px 36px rgba(79,70,229,.24)}

.login-page .compact-alert{
    margin:0 0 14px;
    padding:11px 13px;
    border-radius:14px;
    font-size:12px;
}

.login-page .professional-otp{
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}
.login-page .professional-otp:before{display:none}

.verified-login-card{
    display:grid;
    grid-template-columns:46px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
    padding:13px 14px;
    border:1px solid rgba(16,185,129,.22);
    border-radius:17px;
    background:linear-gradient(135deg,#ecfdf5 0%,#f8fffc 100%);
}
.verified-login-icon{
    display:grid;width:46px;height:46px;place-items:center;
    border-radius:14px;color:#fff;background:linear-gradient(135deg,#059669,#10b981);
    box-shadow:0 10px 22px rgba(16,185,129,.20);
}
.verified-login-copy{display:grid;gap:2px;min-width:0}
.verified-login-copy small{color:#047857;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.verified-login-copy strong{overflow:hidden;color:#0f172a;font-size:13px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
.verified-login-copy em{color:#64748b;font-size:10.5px;font-style:normal;font-weight:700}
.change-account-link{
    display:inline-flex;align-items:center;gap:6px;padding:7px 9px;
    color:#475569;border:1px solid #d9e2ee;border-radius:10px;background:#fff;
    text-decoration:none;font-size:10px;font-weight:900;
}
.change-account-link:hover{color:#4f46e5;border-color:#c7d2fe}

.otp-section-heading{display:grid;gap:3px;margin-bottom:10px}
.otp-section-heading>span{color:#172033;font-size:13px;font-weight:900}
.otp-section-heading>small{color:#64748b;font-size:10.5px;line-height:1.4}

.otp-choice-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:11px;
    margin-bottom:12px;
}
.otp-choice-card{
    position:relative;
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    align-items:center;
    gap:10px;
    min-height:76px;
    padding:12px;
    border:1.5px solid #dfe6f2;
    border-radius:16px;
    background:#fff;
    cursor:pointer;
    transition:.18s ease;
}
.otp-choice-card:hover{transform:translateY(-1px);border-color:#c7d2fe;box-shadow:0 10px 22px rgba(15,23,42,.06)}
.otp-choice-card input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.otp-choice-icon{
    display:grid;width:42px;height:42px;place-items:center;border-radius:13px;font-size:17px;
}
.otp-choice-card.sms .otp-choice-icon{color:#4f46e5;background:#eef2ff}
.otp-choice-card.whatsapp .otp-choice-icon{color:#059669;background:#ecfdf5}
.otp-choice-text{display:grid;gap:3px;min-width:0}
.otp-choice-text strong{color:#172033;font-size:12.5px;font-weight:900}
.otp-choice-text small{color:#718096;font-size:9.8px;line-height:1.35}
.otp-choice-select{
    position:absolute;top:8px;right:8px;display:grid;width:18px;height:18px;place-items:center;
    color:transparent;border:1.5px solid #cbd5e1;border-radius:50%;background:#fff;font-size:8px;
}
.otp-choice-card.sms.selected{border-color:#6366f1;background:linear-gradient(135deg,#eef2ff,#fff);box-shadow:0 8px 22px rgba(79,70,229,.10)}
.otp-choice-card.sms.selected .otp-choice-select{color:#fff;border-color:#6366f1;background:#6366f1}
.otp-choice-card.whatsapp.selected{border-color:#10b981;background:linear-gradient(135deg,#ecfdf5,#fff);box-shadow:0 8px 22px rgba(16,185,129,.10)}
.otp-choice-card.whatsapp.selected .otp-choice-select{color:#fff;border-color:#10b981;background:#10b981}

.login-page .otp-send-submit{margin:0;min-height:46px}

.professional-status{
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr);
    align-items:center!important;
    gap:10px!important;
    margin:13px 0 0!important;
    padding:10px 12px!important;
    border-radius:14px!important;
}
.professional-status>span{display:grid;width:32px;height:32px;place-items:center;border-radius:10px;background:#d1fae5;color:#047857}
.professional-status strong{font-size:11px!important}
.professional-status small{font-size:10px!important}

.login-page .professional-verify-form{
    margin-top:13px;
    padding-top:13px;
    border-top:1px dashed #d8e0ec;
}
.login-page .professional-verify-form .auth-label{margin-top:0}
.login-page .professional-otp-input{
    min-height:54px;
    border:1.5px solid #cbd5e1;
    background:#fff;
}
.login-page .professional-otp-input:focus-within{border-color:#6366f1;box-shadow:0 0 0 4px rgba(99,102,241,.10)}
.login-page .professional-otp-input input{
    text-align:center;
    letter-spacing:.38em;
    font-family:"Inter",sans-serif;
    font-size:20px;
    font-weight:900;
}
.otp-expiry-note{
    display:flex;align-items:flex-start;gap:7px;margin:9px 0 12px;
    color:#64748b;font-size:9.8px;line-height:1.45;
}
.otp-expiry-note i{margin-top:2px;color:#6366f1}
.otp-security-note{
    display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;padding:10px 12px;
    color:#64748b;border:1px dashed #d8e0ec;border-radius:13px;background:#fafbff;
    font-size:10px;font-weight:700;text-align:center;
}
.otp-security-note i{color:#6366f1}

.login-page .auth-register-note{
    margin-top:14px;
    padding-top:12px;
    border-top:1px solid #edf0f5;
    font-size:11px;
}

.login-support-row{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:8px 12px;
    margin-top:11px;
    color:#94a3b8;
}
.login-support-row a{
    display:inline-flex;align-items:center;gap:5px;color:#718096;text-decoration:none;font-size:9.5px;font-weight:800;
}
.login-support-row a i{color:#6366f1}
.login-support-row a:hover{color:#4f46e5}

/* Old fixed support strip must never overlap login form */
.login-page .auth-support-strip{display:none!important}

@media (max-width:680px){
    .login-page .auth-card-wrap{padding:20px}
    .login-page .auth-login-card{padding:22px 18px 18px;border-radius:24px}
    .login-progress{grid-template-columns:1fr 28px 1fr;padding:10px}
    .login-progress-step small{display:none}
    .otp-choice-grid{grid-template-columns:1fr}
    .verified-login-card{grid-template-columns:42px minmax(0,1fr)}
    .change-account-link{grid-column:2;justify-self:start}
}
