@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    color: #e8edf4;
    background:
        radial-gradient(1200px 600px at -10% 110%, rgba(14, 43, 92, 0.35), transparent 55%),
        radial-gradient(900px 500px at 100% 100%, rgba(12, 31, 74, 0.3), transparent 55%),
        #050918;
}

.auth-login-screen {
    min-height: 100vh;
    width: 100%;
    padding: clamp(24px, 5vw, 48px) 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-login-wrap {
    width: 100%;
    max-width: 620px;
    min-width: 0;
    display: grid;
    gap: 18px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 14px;
    color: #f3f7ff;
}

.brand-mark {
    width: 58px;
    height: 48px;
    flex: 0 0 auto;
}

.brand-mark path {
    fill: none;
    stroke: currentColor;
    stroke-width: 5.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

.login {
    position: relative;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(168, 178, 194, 0.35);
    border-radius: 30px;
    padding: 44px 46px 40px;
    background:
        linear-gradient(102deg, rgba(255, 255, 255, 0.16) 6%, rgba(255, 255, 255, 0.03) 34%, rgba(8, 15, 34, 0.3) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 28px 70px rgba(1, 8, 26, 0.55);
    overflow: hidden;
}

.login::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(103deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 24%, transparent 26%);
}

.login h1 {
    margin: 0;
    text-align: center;
    color: #f8fbff;
    font-weight: 600;
    font-size: 38px;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

.login-divider {
    height: 1px;
    margin: 28px 0 34px;
    background: rgba(225, 233, 244, 0.7);
}

.login-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}

.login-form > * {
    min-width: 0;
}

.field-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 56px;
    border: 2px solid rgba(86, 99, 122, 0.7);
    border-radius: 9px;
    background: rgba(18, 30, 49, 0.84);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 16px;
}

.field-icon {
    color: #7f8ea6;
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.field-input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e9eff9;
    font-size: 17px;
    font-weight: 500;
    min-width: 0;
}

.field-input::placeholder {
    color: #8f9caf;
}

.field-toggle {
    border: 0;
    background: transparent;
    color: #7f8ea6;
    font-size: 1rem;
    padding: 4px;
    cursor: pointer;
}

.captcha-wrap {
    margin-top: 2px;
    display: flex;
    justify-content: center;
}

.captcha-wrap-left {
    justify-content: flex-start;
}

.g-recaptcha {
    transform-origin: center top;
}

.meta-line {
    margin: 6px 0 0;
    text-align: center;
    color: #a1abbb;
    font-size: 13px;
    font-weight: 500;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.meta-line-lg {
    margin-top: 12px;
    font-size: 14px;
}

.meta-line a {
    color: #3f7dff;
    text-decoration: none;
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #a1abbb;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 2px;
    cursor: pointer;
}

.terms-row a {
    color: #3f7dff;
    text-decoration: none;
}

.terms-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    border: 1px solid rgba(149, 163, 187, 0.8);
    border-radius: 4px;
    background: rgba(18, 30, 49, 0.84);
    flex: 0 0 auto;
}

.terms-checkbox:checked {
    background: #61c5ca;
    border-color: #61c5ca;
}

.login-submit {
    margin-top: 18px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 60px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #67d7dd 0%, #61c5ca 100%);
    color: #f2f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    box-shadow: 0 8px 20px rgba(92, 220, 227, 0.34);
    cursor: pointer;
}

.login-submit:focus-visible {
    outline: 3px solid rgba(157, 244, 248, 0.85);
    outline-offset: 2px;
}

@media (max-width: 920px) {
    .login {
        border-radius: 28px;
        padding: 34px 24px 30px;
    }

    .brand-mark {
        width: 52px;
        height: 42px;
    }

    .brand-text {
        font-size: 26px;
    }

    .login h1 {
        font-size: 38px;
    }

    .field-wrap {
        height: 56px;
        padding: 0 14px;
    }

    .field-icon,
    .field-toggle {
        font-size: 1rem;
        width: 18px;
    }

    .field-input {
        font-size: 17px;
    }

    .login-submit {
        height: 60px;
        font-size: 18px;
    }

    .meta-line {
        font-size: 13px;
    }

    .meta-line-lg {
        font-size: 14px;
    }

    .terms-row {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .auth-login-screen {
        padding: 18px 10px;
    }

    .auth-brand {
        gap: 8px;
    }

    .brand-mark {
        width: 44px;
        height: 36px;
    }

    .brand-text {
        font-size: 22px;
    }

    .login {
        border-radius: 22px;
        padding: 28px 16px 22px;
    }

    .login h1 {
        font-size: 34px;
    }

    .login-divider {
        margin: 22px 0 24px;
    }

    .field-wrap {
        height: 56px;
        padding: 0 12px;
    }

    .field-input {
        font-size: 17px;
    }

    .field-icon,
    .field-toggle {
        font-size: 1rem;
        width: 18px;
    }

    .g-recaptcha {
        transform: scale(0.85);
    }

    .login-submit {
        height: 60px;
        font-size: 18px;
        padding: 0 14px;
    }

    .meta-line {
        font-size: 13px;
    }

    .meta-line-lg {
        font-size: 14px;
    }

    .terms-row {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .auth-login-screen {
        padding: 16px 8px;
    }

    .login {
        padding: 24px 12px 20px;
    }

    .auth-brand {
        gap: 6px;
    }

    .brand-text {
        font-size: 20px;
    }

    .login h1 {
        font-size: 30px;
    }

    .field-wrap {
        padding: 0 10px;
        gap: 12px;
    }

    .captcha-wrap-left {
        justify-content: center;
    }

    .g-recaptcha {
        transform: scale(0.76);
    }

    .login-submit {
        padding: 0 12px;
        font-size: 16px;
    }
}
