.login-page {
    min-height: 100vh;
    padding: 72px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(99, 91, 255, .12), transparent 32%),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, .14), transparent 36%),
        #ffffff;
    color: #0a1029;
}

.login-card {
    width: min(100%, 560px);
    padding: clamp(34px, 5vw, 58px);
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(10, 16, 41, .1);
    box-shadow: 0 30px 90px rgba(10, 16, 41, .08);
    backdrop-filter: blur(18px);
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 38px;
}

.login-brand img {
    width: 142px;
    height: auto;
    display: block;
}

.login-heading {
    text-align: center;
    margin-bottom: 34px;
}

.login-heading span {
    display: inline-flex;
    margin-bottom: 12px;
    color: #635bff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 0;
    color: #0a1029;
    font-size: clamp(40px, 6vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 850;
}

.login-heading p {
    max-width: 420px;
    margin: 16px auto 0;
    color: #667085;
    font-size: 17px;
    line-height: 1.65;
}

.login-error {
    margin-bottom: 24px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff0f0;
    border: 1px solid rgba(220, 38, 38, .18);
    color: #b42318;
    font-size: 14px;
    font-weight: 750;
}

.login-error svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: #dc2626;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-form {
    display: grid;
    gap: 22px;
}

.login-field {
    display: grid;
    gap: 9px;
}

.login-field label {
    color: #0a1029;
    font-size: 14px;
    font-weight: 850;
}

.input-wrap {
    position: relative;
}

.input-wrap > svg,
.input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8991a8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 58px;
    padding: 0 18px 0 52px;
    background: #ffffff;
    border: 1px solid rgba(10, 16, 41, .14);
    border-radius: 0;
    outline: none;
    color: #0a1029;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.password-wrap input {
    padding-right: 54px;
}

.input-wrap input::placeholder {
    color: #939aae;
}

.input-wrap input:focus {
    border-color: rgba(99, 91, 255, .58);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, .1);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8991a8;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle:hover {
    color: #635bff;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.login-submit {
    height: 60px;
    margin-top: 8px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #635bff, #7c3aed);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(99, 91, 255, .28);
    transition: transform .18s ease, box-shadow .18s ease;
}

.login-submit span {
    margin-left: 8px;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 54px rgba(99, 91, 255, .34);
}

.login-footer {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid rgba(10, 16, 41, .08);
    text-align: center;
}

.login-footer a {
    color: #667085;
    font-size: 15px;
    font-weight: 800;
}

.login-footer a:hover {
    color: #635bff;
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .login-page {
        align-items: flex-start;
        padding: 46px 18px;
    }

    .login-card {
        padding: 34px 24px;
    }

    .login-brand {
        margin-bottom: 30px;
    }

    .login-brand img {
        width: 124px;
    }

    .login-heading h1 {
        font-size: clamp(36px, 11vw, 48px);
    }

    .login-heading p {
        font-size: 16px;
    }

    .input-wrap input {
        height: 56px;
    }

    .login-submit {
        height: 56px;
    }
}

@media (max-width: 420px) {
    .login-page {
        padding: 36px 14px;
    }

    .login-card {
        padding: 30px 18px;
    }

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

    .input-wrap input {
        font-size: 14px;
    }
}