:root {
    --auth-green-950: #05271f;
    --auth-green-900: #07382c;
    --auth-green-800: #075642;
    --auth-green-600: #0d9f75;
    --auth-green-500: #19b887;
    --auth-green-400: #42d7a5;

    --auth-page: #edf4f1;
    --auth-card: #ffffff;
    --auth-input: #ffffff;
    --auth-soft: #f5f9f7;
    --auth-text: #10231d;
    --auth-muted: #687b74;
    --auth-border: #d9e5e0;
    --auth-border-strong: #bfcec8;
    --auth-danger: #b42318;
    --auth-danger-soft: #fff1f0;
    --auth-success: #067647;
    --auth-success-soft: #ecfdf3;

    --auth-shadow:
        0 24px 70px rgba(18, 45, 36, .11);
}

html[data-theme="dark"] {
    --auth-page: #081812;
    --auth-card: #10231c;
    --auth-input: #0a1a14;
    --auth-soft: #0d1e18;
    --auth-text: #eef8f4;
    --auth-muted: #a0b6ad;
    --auth-border: #29443a;
    --auth-border-strong: #3a5a4e;
    --auth-danger: #fda29b;
    --auth-danger-soft: rgba(127, 29, 29, .28);
    --auth-success: #6ce9a6;
    --auth-success-soft: rgba(5, 96, 58, .30);

    --auth-shadow:
        0 28px 80px rgba(0, 0, 0, .30);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--auth-page);
}

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: var(--auth-text);
    background: var(--auth-page);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.auth-page {
    display: grid;
    grid-template-columns:
        minmax(440px, .92fr)
        minmax(500px, 1.08fr);
    min-height: 100vh;
    min-height: 100svh;
}

.auth-information {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--auth-green-950) 0%,
            var(--auth-green-900) 55%,
            var(--auth-green-800) 100%
        );
}

.auth-information::before,
.auth-information::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-information::before {
    width: 520px;
    height: 520px;
    top: -260px;
    right: -210px;
}

.auth-information::after {
    width: 360px;
    height: 360px;
    right: -180px;
    bottom: -180px;
}

.auth-information-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    min-height: 100%;
    margin: 0 auto;
    padding:
        clamp(32px, 5vw, 68px)
        clamp(34px, 6vw, 86px);
}

.auth-brand-lockup {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 13px;
    color: #ffffff;
    text-decoration: none;
}

.auth-brand-logo {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    background: rgba(255, 255, 255, .09);
}

.auth-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}

.auth-brand-lockup strong,
.auth-brand-lockup small {
    display: block;
}

.auth-brand-lockup strong {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.auth-brand-lockup small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
    letter-spacing: .035em;
}

.auth-copy {
    width: 100%;
    max-width: 570px;
    margin: auto 0;
    padding: 56px 0;
}

.auth-label,
.auth-card-label {
    display: inline-flex;
    align-items: center;
    color: var(--auth-green-400);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .15em;
}

.auth-copy h1 {
    max-width: 560px;
    margin: 18px 0 18px;
    color: #ffffff;
    font-size: clamp(38px, 4.1vw, 58px);
    line-height: 1.06;
    font-weight: 720;
    letter-spacing: -.045em;
}

.auth-copy > p {
    max-width: 550px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(15px, 1.25vw, 17px);
    line-height: 1.75;
}

.auth-benefits {
    display: grid;
    gap: 16px;
    max-width: 510px;
    margin-top: 36px;
}

.auth-benefits > div {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.auth-benefits i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--auth-green-400);
    box-shadow: 0 0 0 5px rgba(66, 215, 165, .10);
}

.auth-benefits strong,
.auth-benefits small {
    display: block;
}

.auth-benefits strong {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.auth-benefits small {
    max-width: 440px;
    margin-top: 3px;
    color: rgba(255, 255, 255, .61);
    font-size: 12px;
    line-height: 1.55;
}

.auth-information-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
}

.auth-form-area {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    padding:
        clamp(38px, 6vw, 84px)
        clamp(24px, 6vw, 92px);
    background: var(--auth-page);
}

.auth-theme-button {
    position: absolute;
    top: 24px;
    right: 28px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--auth-text);
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(20, 49, 40, .05);
    cursor: pointer;
}

.auth-theme-button:hover {
    border-color: var(--auth-green-500);
}

.auth-card {
    width: 100%;
    max-width: 500px;
    padding: clamp(28px, 4vw, 42px);
    color: var(--auth-text);
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 22px;
    box-shadow: var(--auth-shadow);
}

.auth-card-register {
    max-width: 660px;
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 11px;
    margin-bottom: 28px;
}

.auth-mobile-brand img {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.auth-mobile-brand strong,
.auth-mobile-brand small {
    display: block;
}

.auth-mobile-brand strong {
    color: var(--auth-text);
    font-size: 17px;
}

.auth-mobile-brand small {
    margin-top: 2px;
    color: var(--auth-muted);
    font-size: 11px;
}

.auth-card-header {
    margin-bottom: 28px;
}

.auth-card-header h2 {
    margin: 11px 0 7px;
    color: var(--auth-text);
    font-size: clamp(27px, 2.5vw, 34px);
    line-height: 1.18;
    font-weight: 730;
    letter-spacing: -.035em;
}

.auth-card-header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-alert {
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-alert.success {
    color: var(--auth-success);
    background: var(--auth-success-soft);
    border-color: rgba(18, 183, 106, .20);
}

.auth-alert.error {
    color: var(--auth-danger);
    background: var(--auth-danger-soft);
    border-color: rgba(217, 45, 32, .18);
}

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

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-wide {
    grid-column: 1 / -1;
}

.auth-field {
    display: block;
    min-width: 0;
}

.auth-field > label {
    display: block;
    margin-bottom: 7px;
    color: var(--auth-text);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.auth-field input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 11px 13px;
    color: var(--auth-text);
    background: var(--auth-input);
    border: 1px solid var(--auth-border-strong);
    border-radius: 11px;
    outline: 0;
    font-size: 14px;
    line-height: 1.4;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.auth-field input::placeholder {
    color: var(--auth-muted);
    opacity: .72;
}

.auth-field input:focus {
    border-color: var(--auth-green-500);
    box-shadow:
        0 0 0 3px rgba(25, 184, 135, .13);
}

.auth-password-field {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    min-width: 62px;
    height: 34px;
    padding: 0 10px;
    color: var(--auth-green-800);
    background: var(--auth-soft);
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

html[data-theme="dark"] .password-toggle {
    color: var(--auth-green-400);
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 9px;
    color: var(--auth-muted);
    font-size: 12px;
    cursor: pointer;
}

.auth-remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--auth-green-600);
}

.auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
    padding: 12px 18px;
    color: #ffffff;
    background: var(--auth-green-600);
    border: 1px solid var(--auth-green-600);
    border-radius: 11px;
    font-size: 14px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -.005em;
    cursor: pointer;
    transition:
        background .16s ease,
        border-color .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.auth-submit:hover {
    background: var(--auth-green-800);
    border-color: var(--auth-green-800);
    box-shadow:
        0 10px 25px rgba(13, 159, 117, .20);
    transform: translateY(-1px);
}

.auth-divider {
    padding: 23px 0 18px;
}

.auth-divider span {
    display: block;
    height: 1px;
    background: var(--auth-border);
}

.auth-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--auth-muted);
    font-size: 12px;
    text-align: center;
}

.auth-card-footer a {
    color: var(--auth-green-600);
    font-weight: 750;
    text-decoration: none;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

.auth-security-note {
    margin: 18px 0 0;
    color: var(--auth-muted);
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

.auth-registration-note {
    padding: 11px 13px;
    color: var(--auth-muted);
    background: var(--auth-soft);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .auth-page {
        grid-template-columns:
            minmax(350px, .78fr)
            minmax(500px, 1.22fr);
    }

    .auth-information-inner {
        padding:
            42px
            44px;
    }

    .auth-copy h1 {
        font-size: 42px;
    }

    .auth-benefits {
        margin-top: 28px;
    }
}

@media (max-width: 880px) {
    .auth-page {
        display: block;
        min-height: 100svh;
    }

    .auth-information {
        display: none;
    }

    .auth-form-area {
        min-height: 100svh;
        padding:
            78px
            18px
            30px;
    }

    .auth-theme-button {
        top: 18px;
        right: 18px;
    }

    .auth-card {
        max-width: 540px;
        border-radius: 18px;
    }

    .auth-card-register {
        max-width: 680px;
    }

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

@media (max-width: 620px) {
    .auth-form-area {
        display: block;
        padding:
            68px
            12px
            20px;
    }

    .auth-card {
        max-width: none;
        padding: 22px 18px;
        border-radius: 15px;
    }

    .auth-card-header {
        margin-bottom: 22px;
    }

    .auth-card-header h2 {
        font-size: 26px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .auth-wide {
        grid-column: auto;
    }

    .auth-card-footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    .auth-card {
        padding: 20px 14px;
    }

    .auth-field input {
        height: 46px;
    }

    .auth-submit {
        min-height: 48px;
    }
}
