:root {
    --gi-ink: #0b1838;
    --gi-text: #35415f;
    --gi-muted: #74809b;
    --gi-blue: #2f80ed;
    --gi-green: #12a67a;
    --gi-line: #dfe7f3;
    --gi-bg: #f5f8fc;
    --gi-white: #ffffff;
    --gi-danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--gi-bg);
    color: var(--gi-text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}

.auth-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 56px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 20, 50, .95), rgba(47, 128, 237, .76)),
        radial-gradient(circle at 78% 24%, rgba(18, 166, 122, .52), transparent 28%),
        #0b1838;
}

.auth-visual__content {
    width: min(620px, 100%);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
    color: #fff;
}

.auth-brand__mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--gi-blue), var(--gi-green));
    font-weight: 900;
}

.auth-brand__mark img {
    display: block;
    height: 100%;
    width: 100%;
}

.auth-brand span:last-child {
    font-size: 24px;
    font-weight: 900;
}

.auth-visual h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.04;
}

.auth-visual p {
    width: min(560px, 100%);
    margin: 0;
    color: #e7eefb;
    font-size: 19px;
    line-height: 1.6;
}

.auth-points {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.auth-point {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    max-width: 520px;
}

.auth-point span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 900;
}

.auth-point strong {
    color: #fff;
    font-size: 15px;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.auth-card {
    width: min(470px, 100%);
    padding: 38px;
    border: 1px solid var(--gi-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(19, 33, 68, .10);
}

.auth-card__top {
    margin-bottom: 26px;
}

.auth-card__top h2 {
    margin: 0 0 8px;
    color: var(--gi-ink);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.12;
}

.auth-card__top p {
    margin: 0;
    color: var(--gi-muted);
    font-size: 15px;
    line-height: 1.5;
}

.auth-status {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #abefc6;
    border-radius: 8px;
    background: #ecfdf3;
    color: #067647;
    font-size: 14px;
    line-height: 1.5;
}

.auth-error {
    margin: -8px 0 14px;
    color: var(--gi-danger);
    font-size: 13px;
    line-height: 1.4;
}

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

.auth-card label {
    display: block;
    margin-bottom: 7px;
    color: var(--gi-ink);
    font-size: 14px;
    font-weight: 900;
}

.auth-card input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid var(--gi-line);
    border-radius: 8px;
    color: var(--gi-ink);
    font-size: 16px;
    font-weight: 700;
    background: #fff;
}

.auth-card input:focus {
    border-color: var(--gi-blue);
    box-shadow: 0 0 0 4px rgba(47, 128, 237, .10);
    outline: none;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 86px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 74px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #718096;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    transform: translateY(-50%);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 0 20px;
    color: var(--gi-muted);
    font-size: 14px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.remember input {
    width: 16px;
    height: 16px;
}

.auth-link {
    color: var(--gi-blue);
    font-weight: 900;
}

.auth-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--gi-blue);
    box-shadow: 0 14px 28px rgba(47, 128, 237, .22);
    cursor: pointer;
    font-weight: 900;
}

.auth-card__footer {
    margin: 18px 0 0;
    color: var(--gi-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.back-home {
    display: inline-flex;
    margin-top: 18px;
}

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

    .auth-visual {
        min-height: 360px;
        padding: 42px 24px;
    }

    .auth-panel {
        padding: 30px 18px 46px;
    }
}

@media (max-width: 520px) {
    .auth-visual {
        min-height: auto;
    }

    .auth-visual h1 {
        font-size: 38px;
    }

    .auth-card {
        padding: 26px 20px;
    }

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