/* ==========================
   LOGIN
========================== */

.login-container {
    width: 100%;
    min-height: var(--page-available-height);
    padding: 90px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================
   SHARED LIQUID GLASS
========================== */

.login-card input,
.login-card button,
#error-message {
    position: relative;
    overflow: hidden;

    background: rgba(255, 255, 255, .48);

    backdrop-filter: blur(38px) saturate(1.25);
    -webkit-backdrop-filter: blur(38px) saturate(1.25);

    border: 1px solid rgba(255, 255, 255, .42);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, .12),
        inset 0 1px 0 rgba(255, 255, 255, .85),
        inset 0 -1px 0 rgba(255, 255, 255, .18);
}

.login-card button::before,
#error-message::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, .42),
            rgba(255, 255, 255, .08) 42%,
            rgba(255, 255, 255, 0) 100%
        );
    pointer-events: none;
}

.login-card button > *,
#error-message > * {
    position: relative;
    z-index: 1;
}

/* ==========================
   CARD
========================== */

.login-card {
    width: 100%;
    max-width: 500px;
    padding: 44px;
}

.login-card h1 {
    margin: 0 0 12px;

    text-align: center;

    font-size: 42px;
    line-height: 1.1;
    font-weight: 850;

    color: #222;
}

.login-subtitle {
    margin: 0 0 30px;

    text-align: center;
    font-size: 16px;
    line-height: 1.55;

    color: rgba(20, 20, 20, .68);
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-card input {
    height: 52px;
    padding: 0 16px;

    border-radius: 16px;
    outline: none;

    font-size: 16px;
    font-family: inherit;

    color: #222;
}

.login-card input:focus {
    background: rgba(255, 255, 255, .30);
    border-color: rgba(255, 255, 255, .72);
}

.login-card button {
    height: 56px;

    border-radius: 999px;

    cursor: pointer;

    font-size: 16px;
    font-weight: 850;
    font-family: inherit;

    color: #222;

    transition: .2s ease;
}

.login-card button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .34);
}

#error-message {
    margin-top: 18px;
    padding: 12px 14px;

    border-radius: 18px;

    color: rgba(150, 20, 20, .88);
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

#error-message:not([hidden]) {
    display: block;
}

#error-message > span {
    position: relative;
    z-index: 1;
}

.login-card .forgot-password-link {
    align-self: flex-end;
    color: #222;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    cursor: default;
}

.signup-link {
    margin-top: 22px;

    text-align: center;
    font-size: 15px;

    color: rgba(20, 20, 20, .66);
}

.signup-link a {
    color: #222;
    font-weight: 850;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .login-container {
        padding: 95px 16px 60px;
    }

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

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