:root {
    --indigo-900: #0f1235;
    --indigo-800: #1d2149;
    --indigo-700: #2a2f63;
    --accent-cyan: #7de3e3;
    --accent-orange: #ff8c3a;
    --accent-green: #9eec98;
    --text-primary: #ffffff;
    --text-dark: #1d2149;
    --muted: #9aa3c0;
    --bg-page: #f7f8fb;
    --card-shadow: 0 30px 80px rgba(17, 22, 54, 0.1);
}

body {
    font-family: "Alexandria", "Cairo", sans-serif !important;
    background: #fff;
    color: var(--text-dark);
    direction: rtl;
}

.login-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.login-layout > .row {
    width: 100%;
}

.hero-panel {
    background: url('https://live-notimoney.fra1.cdn.digitaloceanspaces.com/static/new_login.png') center top / cover no-repeat;
    color: var(--text-primary);
    border-radius: 36px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-size: cover;
}

.hero-badges {
    gap: 14px;
}

.hero-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    color: var(--text-primary);
}

.badge-cyan {
    background: rgba(125, 227, 227, 0.12);
    color: var(--accent-cyan);
}

.badge-orange {
    background: rgba(255, 140, 58, 0.12);
    color: var(--accent-orange);
}

.badge-green {
    background: rgba(158, 236, 152, 0.12);
    color: var(--accent-green);
}

.hero-title {
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 1);
    font-size: 48px;
    font-weight: 700;
}

.hero-subtitle {
    color: #cfd6f3;
    font-size: 15px;
    margin-bottom: 12px;
}

.hero-highlight {
    color: #ffcf70;
    font-weight: 700;
}

.hero-chart {
    position: relative;
    height: 260px;
    border-radius: 24px;
    background: transparent;
    overflow: hidden;
}

.hero-chart::after {
    content: none;
}

.hero-progress {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    z-index: 2;
}

.hero-progress::after {
    content: "";
    display: block;
    width: 120px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #9eec98 0%, #7de3e3 75%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.2) 100%);
}

.hero-figure {
    display: none;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(15, 18, 53, 0.05);
}

.login-logo {
    width: 207px;
    height: 50px;
    margin-bottom: 41px;
}

h4.login-title {
    height: 32px;
    color: rgba(29, 33, 73, 1);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 41px;
}

#emailPasswordForm {
    text-align: right;
}

.login-intro {
    font-weight: 700;
    color: var(--indigo-800);
    font-size: 20px;
    margin-bottom: 6px;
}

.login-subtext {
    color: var(--muted);
    font-size: 15px;
}

.form-label, .form-check-label {
    color: #1d2149;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 12px;
    margin-top: 5px;
}

input[type="radio"], input[type="checkbox"] {
    margin: 0 50px 0 8px !important
}

.form-control {
    border: 1px solid #e6e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.form-control {
    padding: 0 5px;
}

.form-control:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 0.15rem rgba(125, 227, 227, 0.35);
}

.form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-left: 6px;
    border-radius: 8px;
    border: 1px solid #d7dbea;
}

.form-check-input:checked {
    background-color: var(--indigo-800);
    border-color: var(--indigo-800);
}

.btn-primary {
    background: linear-gradient(90deg, var(--Background-Primary, #3E489E) 0%, #161A38 100%);
    border: 1px solid #ffffff33;
    border-radius: 26px;
    padding: 16px 12px;
    font-weight: 500;
    margin: 32px 0;
}

button.otp-login-link {
    font-weight: 500;
    font-size: 16px;
    color: rgba(29, 33, 73, 1);
    background: none;
    border: 0;
}

.create-account-section, .create-account-section a, .create-account-section a:hover, .create-account-section span {
    color: rgba(29, 33, 73, 1);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.btn-outline-secondary {
    border-radius: 14px;
    border-color: #d7dbea;
    color: var(--indigo-800);
}

.btn-outline-secondary:hover {
    background: #f3f6ff;
    color: var(--indigo-800);
}

.otp-toggle {
    margin-bottom: 4px;
}

.otp-helper {
    color: var(--muted);
    font-size: 13px;
}

.otp-digit input,
.otp-input {
    border: 1px solid #e6e8f0;
    border-radius: 12px;
    box-shadow: none;
    background: #ffffff;
    color: var(--indigo-800);
}

.otp-digit input:focus,
.otp-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 0.15rem rgba(125, 227, 227, 0.35);
    outline: none;
}

.password-toggle {
    position: absolute;
    inset-inline-start: 12px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    color: #9aa3c0;
    cursor: pointer;
    padding: 6px;
    left: 0;
    right: auto;
}

.divider span {
    color: var(--muted);
}

.form-check-input {
    margin: 0 50px 0 8px !important;
    height: auto !important;
}

.login-footer {
    color: var(--muted);
    font-size: 14px;
}

.login-footer a {
    color: var(--indigo-800);
    font-weight: 700;
}

.alert {
    border-radius: 12px;
}

.phone-notice {
    line-height: 1.5;
    padding: 5px 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #1d3da4;
    font-size: 14px;
}

@media (max-width: 991px) {

    body .container.container-fluid {
        padding: 0 14px;
    }

    .login-layout {
        padding: 24px 14px;
        align-items: flex-start;
    }

    .login-layout > .row {
        margin: 0 auto;
    }

    .hero-panel {
        border-radius: 28px;
    }

    .login-card {
        padding: 28px;
    }
}

@media (max-width: 767px) {
    .login-layout {
        padding: 18px 0;
    }

    .hero-panel {
        height: 400px !important;
        margin-top: 40px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-chart {
        height: 200px;
    }

    .hero-figure {
        width: 85%;
        right: 0;
    }

    .login-card {
        padding: 22px;
        margin-top: 22px;
    }
}

@media (min-width: 1024px) {
    body>.container.container-fluid {
        max-width: 1440px;
    }

    .hero-panel {
        height: 850px !important;
    }
}

@media (min-width:768px) and (max-width:1000px) {
    body>.container.container-fluid {
        max-width: 1120px;
    }

    .hero-panel {
        height: 850px !important;
    }
}