:root {
    --navy-1: #161C42;
    --navy-2: #2A3A8F;
    --navy-3: #3E52C1;
    --ink: #10142E;
    --ink-soft: #5C6278;
    --ink-faint: #9AA0B8;
    --line: #E4E8F5;
    --white: #FFFFFF;
    --teal: #0FB79B;
    --teal-dark: #0B8F79;
    --teal-tint: #E4F8F4;
    --danger: #E0553E;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: 'Tahoma', 'Vazirmatn', system-ui, sans-serif;
    background:
        radial-gradient(1100px 500px at 15% -10%, rgba(62, 82, 193, 0.08), transparent),
        radial-gradient(900px 500px at 100% 110%, rgba(15, 183, 155, 0.07), transparent),
        #F3F6FC;
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.login-shell {
    direction: ltr;
    width: 100%;
    max-width: 1040px;
    display: flex;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 80px -28px rgba(16, 20, 46, 0.28);
}

.row.g-0 {
    display: flex;
    width: 100%;
    gap: 0;
}

.col-md-5 {
    flex: 0 0 46%;
}

.col-md-7 {
    flex: 0 0 54%;
}

.left-panel {
    background: radial-gradient(600px 400px at 20% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
                linear-gradient(155deg, var(--navy-1) 0%, var(--navy-2) 62%, var(--navy-3) 100%);
    color: #fff;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
    direction: rtl;
}

.brand-badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--teal), #3FE0C4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(15, 183, 155, 0.6);
}

.brand-badge svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.hero-title {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 12px;
}

.hero-text {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 28px;
    max-width: 360px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li::before {
    content: '✓';
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #7ef6e8;
    font-weight: 900;
    flex-shrink: 0;
}

.right-panel {
    direction: rtl;
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--teal-dark);
    background: var(--teal-tint);
    padding: 6px 12px;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 18px;
}

.panel-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--ink);
    line-height: 1.5;
}

.panel-subtitle {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0 0 30px;
    line-height: 1.9;
}

.field {
    margin-bottom: 18px;
}

.label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
}

.input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}

.input-wrap:focus-within {
    border-color: var(--navy-3);
    box-shadow: 0 0 0 4px rgba(62, 82, 193, 0.12);
}

.prefix {
    padding: 14px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-soft);
    border-left: 1.5px solid var(--line);
    background: #FAFBFE;
    white-space: nowrap;
}

.input-wrap input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 14px;
    font-size: 15.5px;
    letter-spacing: 0.4px;
    color: var(--ink);
    background: transparent;
    direction: ltr;
    text-align: right;
}

.input-wrap input::placeholder {
    color: var(--ink-faint);
}

.error-box {
    font-size: 12.5px;
    color: var(--danger);
    margin-top: 7px;
    min-height: 16px;
    font-weight: 600;
}

.btn {
    width: 100%;
    border: 0;
    cursor: pointer;
    margin-top: 22px;
    background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 14px 28px -12px rgba(42, 58, 143, 0.55);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px -12px rgba(42, 58, 143, 0.6);
}

.btn.secondary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    box-shadow: 0 14px 28px -12px rgba(15, 118, 110, 0.4);
}

.btn.secondary:not(:disabled):hover {
    box-shadow: 0 18px 32px -12px rgba(15, 118, 110, 0.5);
}

.muted-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--ink-faint);
}

.muted-row a {
    color: var(--navy-3);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.muted-row a:hover {
    text-decoration: underline;
}

.otp-wrap {
    display: none;
}

.otp-boxes {
    display: flex;
    gap: 10px;
    direction: ltr;
}

.otp-boxes input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    outline: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.otp-boxes input:focus {
    border-color: var(--navy-3);
    box-shadow: 0 0 0 4px rgba(62, 82, 193, 0.12);
}

.status-box {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    display: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

.status-box.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-box.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@media (max-width: 1000px) {
    .login-shell {
        flex-direction: column;
    }

    .col-md-5, .col-md-7 {
        flex: 0 0 100%;
    }

    .left-panel {
        padding: 30px 24px;
        min-height: 280px;
    }

    .right-panel {
        padding: 30px 24px;
    }

    .hero-text {
        max-width: none;
    }
}

@media (max-width: 640px) {
    body {
        padding: 16px;
    }

    .login-shell {
        border-radius: 16px;
    }

    .left-panel,
    .right-panel {
        padding: 20px;
    }

    .panel-title {
        font-size: 20px;
    }

    .check-list {
        display: none;
    }

    .otp-boxes {
        gap: 6px;
    }

    .otp-boxes input {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }
}
