:root {
    --primary: #244bc5;
    --primary-dark: #183aa4;
    --primary-soft: #eef4ff;
    --secondary: #7048e8;
    --dark: #111827;
    --text: #334155;
    --muted: #64748b;
    --border: #dbe3ef;
    --bg: #eef2f7;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", "Noto Sans Devanagari", Arial, sans-serif;
    background: radial-gradient(circle at top left, #e0ecff, #f8fafc 45%, #eef2f7);
    color: var(--text);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(1180px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--white);
    border: 1px solid rgba(219, 227, 239, 0.85);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.auth-visual {
    position: relative;
    padding: 42px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(20, 38, 94, 0.92), rgba(36, 75, 197, 0.88)),
        url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1200&q=80') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    pointer-events: none;
}

.auth-brand-row,
.auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    color: var(--primary);
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.auth-brand-row h1,
.auth-mobile-brand h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.auth-brand-row p,
.auth-mobile-brand p {
    margin: 3px 0 0;
    opacity: 0.82;
}

.visual-content {
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.auth-kicker {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.visual-content h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.visual-content p {
    margin: 20px 0 28px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-grid div {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.feature-grid strong {
    display: block;
    font-size: 24px;
    color: #ffffff;
}

.feature-grid span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.auth-form-wrap {
    padding: 44px;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(440px, 100%);
}

.auth-mobile-brand {
    display: none;
    color: var(--dark);
    margin-bottom: 26px;
}

.auth-heading span {
    display: inline-flex;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.auth-heading h2 {
    margin: 14px 0 8px;
    color: var(--dark);
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.auth-heading p {
    margin: 0 0 28px;
    color: var(--muted);
    font-weight: 600;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-group label {
    display: block;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 8px;
}

.input-box {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fbff;
    padding: 0 14px;
    transition: 0.25s ease;
}

.input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(36, 75, 197, 0.12);
    background: #ffffff;
}

.input-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: var(--dark);
}

.input-box span {
    color: var(--primary);
    font-weight: 900;
}

.password-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
}

.remember-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.auth-options a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.auth-submit {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 16px 30px rgba(36, 75, 197, 0.28);
}

.auth-note {
    margin-top: 22px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

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

    .auth-visual {
        display: none;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .auth-form-wrap {
        padding: 34px;
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 12px;
        align-items: stretch;
    }

    .auth-shell {
        border-radius: 24px;
    }

    .auth-form-wrap {
        padding: 24px 18px;
    }

    .auth-heading h2 {
        font-size: 30px;
    }

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