:root {
    --primary: #2457f5;
    --primary-dark: #1638b8;
    --secondary: #6d3df5;

    --text: #0f1f46;
    --muted: #67758f;

    --page-bg: #eef4ff;
    --surface: #ffffff;
    --border: #dce6f5;

    --shadow-lg:
        0 30px 80px rgba(30, 64, 175, 0.14);

    --shadow-md:
        0 16px 40px rgba(30, 64, 175, 0.10);

    --input-shadow:
        inset 8px 8px 16px rgba(172, 188, 213, 0.34),
        inset -8px -8px 16px rgba(255, 255, 255, 0.92);

    --input-focus:
        0 0 0 4px rgba(36, 87, 245, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family:
        "Noto Sans Bengali",
        "Hind Siliguri",
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(80, 130, 255, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(109, 61, 245, 0.12),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #edf4ff 50%,
            #f6f8ff 100%
        );
}

a {
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.auth-container {
    width: min(1440px, 100%);

    min-height: 860px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.62);

    box-shadow: var(--shadow-lg);

    backdrop-filter: blur(18px);
}

/* =========================
   Left promotional panel
========================= */

.auth-promo {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 42px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(255, 255, 255, 0.18),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #112b83 0%,
            #2257e8 55%,
            #163ebc 100%
        );

    color: #ffffff;
}

.auth-promo::before,
.auth-promo::after {
    content: "";

    position: absolute;

    border-radius: 999px;

    border: 2px solid rgba(255, 255, 255, 0.10);
}

.auth-promo::before {
    width: 520px;
    height: 520px;

    top: -270px;
    right: -160px;
}

.auth-promo::after {
    width: 430px;
    height: 430px;

    bottom: -280px;
    left: -130px;
}

.promo-top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.auth-brand {
    display: flex;
    align-items: center;

    gap: 14px;

    color: #ffffff;
}

.auth-brand-logo {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    font-size: 27px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.28),
            rgba(255, 255, 255, 0.10)
        );

    border: 1px solid rgba(255, 255, 255, 0.28);

    box-shadow:
        0 12px 28px rgba(5, 20, 70, 0.25);
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
}

.auth-brand-text strong {
    font-size: 22px;
    line-height: 1.2;
}

.auth-brand-text small {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 13px;
}

.trial-badge {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 12px 18px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(10px);
}

.promo-content {
    position: relative;
    z-index: 2;

    margin-top: 70px;
}

.promo-label {
    display: inline-flex;

    padding: 9px 14px;

    border-radius: 999px;

    color: #dbe8ff;

    font-size: 13px;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.10);
}

.promo-content h1 {
    max-width: 620px;

    margin: 24px 0 18px;

    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.15;

    font-weight: 900;
    letter-spacing: -0.03em;
}

.promo-content h1 span {
    display: block;

    color: #ffd43b;
}

.promo-content > p {
    max-width: 600px;

    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 17px;
    line-height: 1.9;
}

.promo-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-top: 34px;
}

.promo-feature {
    min-height: 105px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 16px 10px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;

    text-align: center;

    color: rgba(255, 255, 255, 0.92);

    font-size: 13px;
    font-weight: 700;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.07)
        );

    box-shadow:
        0 14px 28px rgba(4, 20, 75, 0.16);

    backdrop-filter: blur(8px);
}

.promo-feature i {
    font-size: 27px;
}

.promo-dashboard {
    position: relative;
    z-index: 2;

    margin-top: 34px;

    padding: 22px;

    border-radius: 22px;

    color: var(--text);

    background: rgba(255, 255, 255, 0.96);

    box-shadow:
        0 24px 55px rgba(7, 25, 85, 0.30);
}

.dashboard-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-preview-top div {
    display: flex;
    flex-direction: column;
}

.dashboard-preview-top strong {
    font-size: 17px;
}

.dashboard-preview-top span {
    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;
}

.preview-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 7px 12px;

    border-radius: 999px;

    color: #15803d !important;

    font-size: 12px;
    font-weight: 700;

    background: #dcfce7;
}

.preview-status i {
    font-size: 7px;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 20px;
}

.preview-card {
    display: flex;
    flex-direction: column;

    padding: 16px;

    border: 1px solid #e5ecf7;
    border-radius: 16px;

    background: #f8fbff;
}

.preview-card i {
    color: var(--primary);

    font-size: 18px;
}

.preview-card span {
    margin-top: 14px;

    color: var(--muted);

    font-size: 11px;
}

.preview-card strong {
    margin-top: 5px;

    font-size: 22px;
}

.preview-chart {
    height: 100px;

    margin-top: 18px;

    border-radius: 15px;

    background:
        linear-gradient(
            180deg,
            rgba(36, 87, 245, 0.14),
            rgba(36, 87, 245, 0.01)
        );

    overflow: hidden;
}

.chart-line {
    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            170deg,
            transparent 0 20%,
            rgba(36, 87, 245, 0.9) 21% 23%,
            transparent 24% 35%,
            rgba(36, 87, 245, 0.9) 36% 38%,
            transparent 39% 50%,
            rgba(36, 87, 245, 0.9) 51% 53%,
            transparent 54%
        );
}

.promo-statistics {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    margin-top: auto;
    padding-top: 30px;
}

.promo-statistics div {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.promo-statistics strong {
    font-size: 18px;
}

.promo-statistics span {
    margin-top: 4px;

    color: rgba(255, 255, 255, 0.70);

    font-size: 11px;
}

/* =========================
   Right form panel
========================= */

.auth-form-panel {
    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.99),
            rgba(247, 250, 255, 0.98)
        );
}

.auth-form-wrapper {
    width: min(620px, 100%);

    margin: auto;

    padding: 60px 52px 30px;
}

.auth-heading span {
    color: var(--primary);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.auth-heading h2 {
    margin: 12px 0 10px;

    font-size: clamp(32px, 3vw, 45px);
    line-height: 1.25;

    font-weight: 900;
    letter-spacing: -0.03em;
}

.auth-heading p {
    margin: 0 0 34px;

    color: var(--muted);

    font-size: 15px;
}

.auth-form {
    display: grid;

    gap: 24px;
}

.auth-field {
    display: grid;

    gap: 10px;
}

.auth-field label {
    color: var(--text);

    font-size: 14px;
    font-weight: 800;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.field-label-row a {
    color: var(--primary);

    font-size: 13px;
    font-weight: 800;
}

.auth-input-box {
    position: relative;

    display: flex;
    align-items: center;
}

.auth-input-box > i {
    position: absolute;

    left: 20px;

    z-index: 2;

    color: #7184a5;

    font-size: 16px;

    pointer-events: none;
}

.auth-input-box input {
    width: 100%;
    height: 62px;

    padding: 0 55px 0 54px;

    border: 0;
    border-radius: 22px;

    outline: none;

    color: var(--text);

    font-size: 15px;

    background:
        linear-gradient(
            145deg,
            #e9f0fa,
            #ffffff
        );

    box-shadow: var(--input-shadow);

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.auth-input-box input::placeholder {
    color: #9aa8bf;
}

.auth-input-box input:focus {
    box-shadow:
        var(--input-shadow),
        var(--input-focus);

    transform: translateY(-1px);
}

.password-toggle {
    position: absolute;

    right: 13px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 14px;

    color: #667b9f;

    background: transparent;

    cursor: pointer;
}

.password-toggle:hover {
    color: var(--primary);

    background: rgba(36, 87, 245, 0.08);
}

.remember-option {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    width: fit-content;

    color: var(--muted);

    font-size: 14px;

    cursor: pointer;
}

.remember-option input {
    width: 18px;
    height: 18px;

    accent-color: var(--primary);
}

.auth-submit-button {
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    border: 0;
    border-radius: 20px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        0 18px 35px rgba(58, 67, 230, 0.28);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-submit-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 22px 42px rgba(58, 67, 230, 0.34);
}

.auth-register-link {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 28px;

    color: var(--muted);

    font-size: 14px;
}

.auth-register-link a {
    color: var(--primary);

    font-weight: 900;
}

.auth-security {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-top: 36px;
    padding-top: 28px;

    border-top: 1px solid var(--border);
}

.auth-security > div {
    display: flex;

    gap: 12px;

    padding: 14px;

    border-radius: 16px;

    background: #f7faff;
}

.auth-security i {
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--primary);

    background: #e4edff;
}

.auth-security span {
    display: flex;
    flex-direction: column;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.5;
}

.auth-security strong {
    margin-bottom: 3px;

    color: var(--text);

    font-size: 12px;
}

.auth-footer {
    margin-top: auto;

    padding: 22px;

    text-align: center;

    color: #8794aa;

    font-size: 12px;
}

.alert {
    border: 0;
    border-radius: 16px;
}

/* =========================
   Tablet
========================= */

@media (max-width: 1100px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-promo {
        min-height: auto;
    }

    .promo-content {
        margin-top: 50px;
    }

    .promo-dashboard {
        max-width: 760px;
    }

    .auth-form-wrapper {
        padding-top: 55px;
        padding-bottom: 55px;
    }
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px) {
    .auth-page {
        padding: 12px;
    }

    .auth-container {
        border-radius: 22px;
    }

    .auth-promo {
        padding: 26px 20px 30px;
    }

    .promo-top {
        align-items: flex-start;
    }

    .auth-brand-logo {
        width: 50px;
        height: 50px;

        font-size: 22px;
    }

    .auth-brand-text strong {
        font-size: 17px;
    }

    .auth-brand-text small {
        font-size: 11px;
    }

    .trial-badge {
        padding: 9px 11px;

        font-size: 11px;
    }

    .promo-content {
        margin-top: 40px;
    }

    .promo-content h1 {
        font-size: 36px;
    }

    .promo-content > p {
        font-size: 15px;
    }

    .promo-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-dashboard {
        padding: 16px;
    }

    .preview-cards {
        grid-template-columns: 1fr;
    }

    .promo-statistics {
        grid-template-columns: repeat(2, 1fr);

        gap: 18px;
    }

    .auth-form-wrapper {
        padding: 42px 20px 30px;
    }

    .auth-heading h2 {
        font-size: 31px;
    }

    .auth-input-box input {
        height: 58px;

        border-radius: 19px;
    }

    .auth-security {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .promo-top {
        flex-direction: column;
    }

    .promo-features {
        grid-template-columns: 1fr 1fr;
    }

    .promo-feature {
        min-height: 92px;

        font-size: 11px;
    }

    .promo-dashboard {
        display: none;
    }

    .field-label-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-register-link {
        flex-direction: column;
    }
}