* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(
            circle at top left,
            #1e3a5f 0,
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #07111f,
            #0d1b2e 55%,
            #101827
        );
    color: #eaf1f8;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background: rgba(13,27,46,.92);
    box-shadow:
        0 24px 70px rgba(0,0,0,.35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 32px;
}

.logo {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eaf1f8;
    color: #0d1b2e;
    font-size: 25px;
    font-weight: 800;
}

h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.brand p {
    margin: 4px 0 0;
    color: #91a4ba;
    font-size: 14px;
}

label {
    display: block;
    margin: 18px 0 7px;
    color: #c8d4e1;
    font-size: 14px;
    font-weight: 600;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #30445d;
    border-radius: 10px;
    outline: none;
    background: #091523;
    color: #fff;
    font-size: 15px;
    transition:
        border-color .15s,
        box-shadow .15s;
}

input:focus {
    border-color: #8ca8c7;
    box-shadow:
        0 0 0 3px rgba(140,168,199,.12);
}

.password-wrap {
    position: relative;
}

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

.toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 7px 8px;
    border: 0;
    background: transparent;
    color: #9fb2c7;
    cursor: pointer;
}

.submit {
    width: 100%;
    height: 48px;
    margin-top: 22px;
    border: 0;
    border-radius: 10px;
    background: #eaf1f8;
    color: #0b1726;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .1s,
        opacity .15s;
}

.submit:hover {
    opacity: .94;
}

.submit:active {
    transform: translateY(1px);
}

.submit:disabled {
    cursor: wait;
    opacity: .6;
}

.message {
    min-height: 20px;
    margin-top: 15px;
    color: #ff9d9d;
    font-size: 13px;
}

.footer {
    margin-top: 28px;
    text-align: center;
    color: #60758c;
    font-size: 12px;
}

@media (max-width: 520px) {
    .card {
        padding: 28px 22px;
    }

    .page {
        padding: 16px;
    }
}
