@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #2f65a4;
    --primary-dark: #173f70;
    --primary-light: #4c82bd;
    --primary-soft: #edf5fc;
    --secondary: #ff9d0a;
    --secondary-dark: #e98300;
    --secondary-soft: #fff4df;
    --dark: #10264b;
    --text: #43566f;
    --muted: #6e7d91;
    --border: #d8e2ec;
    --bg: #f4f7fa;
    --surface: #f8fbfd;
    --white: #ffffff;
    --success: #1f9d67;
    --shadow: 0 24px 60px rgba(16, 38, 75, 0.14);
    --shadow-soft: 0 12px 30px rgba(16, 38, 75, 0.09);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", "Noto Sans Devanagari", Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 157, 10, 0.10), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(47, 101, 164, 0.13), transparent 30%),
        linear-gradient(135deg, #f8f3eb 0%, #f8fafc 48%, #eaf4fb 100%);
    color: var(--text);
}

a {
    color: inherit;
}

.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(216, 226, 236, 0.92);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.auth-visual {
    position: relative;
    isolation: isolate;
    padding: 42px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(16, 38, 75, 0.96), rgba(47, 101, 164, 0.84)),
        url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1400&q=85') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 157, 10, 0.20), transparent 28%),
        linear-gradient(180deg, transparent 55%, rgba(5, 20, 45, 0.28));
    pointer-events: none;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    pointer-events: none;
}

.auth-brand-row,
.auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.auth-brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
    border-radius: 18px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-brand-link:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.auth-brand-link:focus-visible {
    outline: 3px solid rgba(255, 157, 10, 0.48);
    outline-offset: 5px;
}

.footer-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(5, 20, 45, 0.20);
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffffff, #e6f0f8);
    color: var(--primary);
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(16, 38, 75, 0.16);
}

.auth-brand-row h1,
.auth-mobile-brand h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.auth-brand-row p,
.auth-mobile-brand p {
    margin: 4px 0 0;
    opacity: 0.84;
    font-size: 14px;
}

.visual-content {
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    margin-bottom: 18px;
}

.auth-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 5px rgba(255, 157, 10, 0.18);
}

.visual-content h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.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, minmax(0, 1fr));
    gap: 12px;
}

.feature-grid div {
    min-height: 112px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.feature-grid div:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.16);
}

.feature-grid strong {
    display: block;
    font-size: 22px;
    color: #ffffff;
}

.feature-grid span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.auth-form-wrap {
    position: relative;
    padding: 44px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top right, rgba(47, 101, 164, 0.07), transparent 34%),
        #ffffff;
}

.auth-form-wrap::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    top: -70px;
    right: -70px;
    border-radius: 50%;
    background: rgba(255, 157, 10, 0.08);
    pointer-events: none;
}

.auth-card {
    width: min(440px, 100%);
    position: relative;
    z-index: 1;
}

.auth-mobile-brand {
    display: none;
    color: var(--dark);
    margin-bottom: 28px;
}

.auth-mobile-brand .footer-logo {
    width: 62px;
    height: 62px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.auth-heading span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 8px 12px;
    border: 1px solid rgba(47, 101, 164, 0.10);
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.auth-heading h2 {
    margin: 15px 0 8px;
    color: var(--dark);
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.auth-heading p {
    margin: 0 0 28px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-group label {
    display: block;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-box {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 0 14px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.input-box:hover {
    border-color: #becddd;
}

.input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(47, 101, 164, 0.12);
    background: #ffffff;
}

.input-box input,
.form-control {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: var(--dark);
}

.input-box input::placeholder,
.form-control::placeholder {
    color: #97a6b7;
}

.input-box span {
    color: var(--primary);
    font-weight: 900;
}

.password-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.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: 600;
}

.remember-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.auth-options a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-options a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-submit,
.btn-primary {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #ffffff;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 16px 30px rgba(255, 157, 10, 0.27);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 19px 34px rgba(255, 157, 10, 0.34);
    filter: saturate(1.05);
}

.auth-submit:active,
.btn-primary:active {
    transform: translateY(0);
}

.auth-submit:focus-visible,
.btn-primary:focus-visible {
    outline: 4px solid rgba(255, 157, 10, 0.22);
    outline-offset: 3px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border-radius: 15px;
    padding: 0 18px;
    font-family: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-light {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--primary-dark);
}

.btn-light:hover {
    transform: translateY(-1px);
    border-color: #b9c9d9;
    background: var(--primary-soft);
}

.full-width {
    width: 100%;
}

.auth-note {
    margin-top: 22px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
    border-radius: 16px;
    background: linear-gradient(135deg, #fffaf1, #f8fbfd);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 960px) {
    .auth-page {
        padding: 18px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        max-width: 620px;
    }

    .auth-visual {
        display: none;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .auth-form-wrap {
        padding: 38px;
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 10px;
        align-items: stretch;
    }

    .auth-shell {
        border-radius: 24px;
    }

    .auth-form-wrap {
        padding: 26px 18px;
    }

    .auth-mobile-brand {
        align-items: flex-start;
    }

    .auth-mobile-brand h1 {
        font-size: 22px;
    }

    .auth-mobile-brand p {
        font-size: 12px;
    }

    .auth-mobile-brand .footer-logo {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .auth-heading h2 {
        font-size: 31px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}