* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-950: #03164d;
    --blue-900: #0a2573;
    --blue-800: #1238a8;
    --blue-700: #1d49be;
    --white: #ffffff;
    --page-bg: #ffffff;
    --text-950: #222c37;
    --text-900: #2e3947;
    --text-600: #627082;
    --text-500: #7a8797;
    --input-bg: #e9eef5;
    --input-border: #cdd7e3;
    --radius-page: 24px;
    --radius-input: 6px;
    --radius-btn: 6px;
    --shadow-page: 0 28px 70px rgba(15, 23, 42, 0.14);
    --shadow-button: 0 14px 28px rgba(20, 72, 220, 0.22);
}

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

.auth-page {
    min-height: 100vh;
    overflow: hidden;
    background: var(--page-bg);
    color: var(--text-950);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: Inter, Arial, sans-serif;
}

.auth-shell {
    width: min(1560px, 100%);
    height: calc(100vh - 36px);
    max-height: 930px;
    background: var(--white);
    border-radius: var(--radius-page);
    overflow: hidden;
    box-shadow: var(--shadow-page);
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
}

.auth-hero {
    position: relative;
    padding: 24px 60px 48px 72px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.15), transparent 16%),
        radial-gradient(circle at 78% 75%, rgba(255, 255, 255, 0.10), transparent 20%),
        linear-gradient(100deg, #01081f 0%, #0a1d66 14%, #233cc5 56%, #3855e6 100%);
    color: white;
    display: flex;
    align-items: flex-start;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.06) 28%, rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
}

.auth-hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -110px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 40px rgba(255, 255, 255, 0.04),
        0 0 0 80px rgba(255, 255, 255, 0.03),
        0 0 0 120px rgba(255, 255, 255, 0.02);
    opacity: 0.9;
}

.auth-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 650px;
    transform: translateY(-12px);
}

.auth-hero-logo {
    margin-bottom: 22px;
}

.auth-hero-logo img {
    width: 235px;
    max-width: 100%;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.auth-hero-title {
    max-width: 690px;
    margin-bottom: 20px;
    font-size: clamp(40px, 3.7vw, 64px);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 300;
}

.auth-hero-title strong {
    color: #ffffff;
    font-weight: 800;
}

.auth-hero-text {
    max-width: 540px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.55;
    font-weight: 400;
}

.auth-hero-list {
    display: grid;
    gap: 10px;
    max-width: 500px;
}

.auth-hero-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.auth-hero-item span {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.auth-hero-item svg {
    width: 12px;
    height: 12px;
    color: white;
}

.auth-side {
    background: #f7f9fc;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 42px 42px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    transform: translateY(-10px);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.auth-logo img {
    width: 205px;
    display: block;
    object-fit: contain;
}

.auth-title {
    margin-bottom: 12px;
    color: #45586f;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;
}

.auth-subtitle {
    margin-bottom: 20px;
    color: var(--text-600);
    font-size: 14px;
    line-height: 1.65;
}

.auth-message {
    padding: 13px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

.auth-message-error {
    background: #fee9e9;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-message-success {
    background: #edf9f1;
    color: #1f7a43;
    border: 1px solid #c8efd4;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-900);
    font-size: 14px;
    font-weight: 600;
}

.field-wrap {
    width: 100%;
    height: 54px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    border-radius: var(--radius-input);
    display: flex;
    align-items: center;
    padding: 0 14px;
    transition: 0.2s ease;
}

.field-wrap:focus-within {
    border-color: #5aa0e8;
    background: #eef3fa;
    box-shadow: 0 0 0 2px rgba(90, 160, 232, 0.10);
}

.field-wrap input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-950);
    font: inherit;
    font-size: 15px;
}

.field-wrap input::placeholder {
    color: #7d8da2;
}

.password-wrap {
    position: relative;
    padding-right: 78px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #67778f;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
}

.btn-primary {
    width: 100%;
    height: 52px;
    margin-top: 18px;
    border: 0;
    border-radius: var(--radius-btn);
    background: var(--blue-700);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.22s ease;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #173fa7;
}

.forgot-area {
    text-align: center;
    margin: 16px 0;
}

.text-link {
    color: #5b84b7;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.btn-secondary {
    width: 100%;
    height: 46px;
    border-radius: 6px;
    border: 1px solid #cfd8e4;
    background: #ffffff;
    color: var(--text-900);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-secondary:hover {
    background: #f8fbff;
}

@media (max-width: 1200px) {
    .auth-shell {
        grid-template-columns: 1fr 0.92fr;
    }

    .auth-hero {
        padding: 22px 44px 40px 52px;
    }

    .auth-hero-content {
        transform: translateY(-8px);
    }

    .auth-hero-logo {
        margin-bottom: 18px;
    }

    .auth-hero-logo img {
        width: 215px;
    }

    .auth-hero-title {
        margin-bottom: 18px;
        font-size: clamp(36px, 3.4vw, 54px);
    }

    .auth-hero-text {
        margin-bottom: 18px;
        font-size: 15px;
    }

    .auth-hero-list {
        gap: 8px;
    }

    .auth-side {
        padding: 26px 34px 34px;
    }

    .auth-card {
        transform: translateY(-8px);
    }
}

@media (max-width: 980px) {
    .auth-page {
        padding: 12px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        height: calc(100vh - 24px);
    }

    .auth-hero {
        display: none;
    }

    .auth-side {
        align-items: center;
        padding: 26px;
    }

    .auth-card {
        max-width: 460px;
        transform: none;
    }
}

@media (max-width: 520px) {
    .auth-side {
        padding: 18px;
    }

    .auth-title {
        margin-bottom: 16px;
        font-size: 21px;
    }

    .auth-logo img {
        width: 180px;
    }
}

@media (max-height: 760px) {
    .auth-hero {
        padding-top: 18px;
    }

    .auth-hero-content {
        transform: translateY(-16px);
    }

    .auth-hero-logo {
        margin-bottom: 16px;
    }

    .auth-hero-logo img {
        width: 200px;
    }

    .auth-hero-title {
        margin-bottom: 16px;
        font-size: clamp(34px, 3.2vw, 52px);
    }

    .auth-hero-text {
        margin-bottom: 16px;
        font-size: 15px;
        line-height: 1.5;
    }

    .auth-hero-list {
        gap: 8px;
    }

    .auth-hero-item {
        font-size: 13px;
    }

    .auth-side {
        padding-top: 22px;
    }

    .auth-card {
        transform: translateY(-12px);
    }

    .auth-logo {
        margin-bottom: 14px;
    }

    .auth-logo img {
        width: 180px;
    }

    .auth-title {
        font-size: 21px;
    }

    .auth-subtitle {
        margin-bottom: 16px;
    }

    .form-group {
        margin-bottom: 13px;
    }

    .field-wrap {
        height: 48px;
    }

    .btn-primary {
        height: 48px;
        margin-top: 14px;
    }

    .forgot-area {
        margin: 12px 0;
    }
}
