/* ==========================================================================
   Haru Live
   Login
   ========================================================================== */

.auth-login-page {
    --login-bg: #f5f6f8;
    --login-card: #ffffff;

    --login-text: #111827;
    --login-soft: #475569;
    --login-muted: #94a3b8;

    --login-border: #e5e7eb;
    --login-border-strong: #d1d5db;

    --login-primary: #111827;
    --login-primary-hover: #1f2937;

    --login-blue: #2563eb;

    width: 100%;

    color: var(--login-text);
}


/* ==========================================================================
   Brand
   ========================================================================== */

.auth-login-brand {
    display: flex;
    justify-content: center;

    margin-bottom: 20px;
}

.auth-login-brand__link {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: inherit;
    text-decoration: none;
}

.auth-login-brand__logo {
    width: 42px;
    height: 42px;

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

    border-radius: 12px;

    background: #111827;

    font-size: 19px;
    font-weight: 900;

    color: #ffffff;
}

.auth-login-brand__text {
    min-width: 0;
}

.auth-login-brand__name {
    font-size: 17px;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -0.04em;

    color: #111827;
}

.auth-login-brand__caption {
    margin-top: 2px;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: .08em;

    color: #94a3b8;
}


/* ==========================================================================
   Card
   ========================================================================== */

.auth-login-card {
    width: 100%;

    padding: 28px;

    border: 1px solid var(--login-border);
    border-radius: 16px;

    background: var(--login-card);

    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 8px 30px rgba(15, 23, 42, .05);
}


/* ==========================================================================
   Header
   ========================================================================== */

.auth-login-header {
    margin-bottom: 22px;

    text-align: center;
}

.auth-login-title {
    margin: 0;

    font-size: 24px;
    font-weight: 800;

    line-height: 1.3;

    letter-spacing: -0.04em;

    color: #111827;
}

.auth-login-description {
    margin: 7px 0 0;

    font-size: 13px;

    line-height: 1.5;

    color: #64748b;

    word-break: keep-all;
}


/* ==========================================================================
   Error
   ========================================================================== */

.auth-login-error {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    margin-bottom: 16px;

    padding: 10px 12px;

    border: 1px solid #fecaca;
    border-radius: 9px;

    background: #fef2f2;

    color: #b91c1c;
}

.auth-login-error__icon {
    flex: 0 0 auto;

    width: 19px;
    height: 19px;

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

    border-radius: 999px;

    background: #dc2626;

    font-size: 12px;
    font-weight: 800;

    color: #ffffff;
}

.auth-login-error__text {
    padding-top: 1px;

    font-size: 12px;
    line-height: 1.45;
}


/* ==========================================================================
   Form
   ========================================================================== */

.auth-login-form {
    width: 100%;
}

.auth-login-field + .auth-login-field {
    margin-top: 15px;
}

.auth-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;
}

.auth-login-label {
    display: block;

    margin-bottom: 6px;

    font-size: 12px;
    font-weight: 700;

    color: #374151;
}

.auth-login-label-row .auth-login-label {
    margin-bottom: 6px;
}

.auth-login-password-link {
    margin-bottom: 6px;

    font-size: 12px;
    font-weight: 600;

    color: #64748b;

    text-decoration: none;
}

.auth-login-password-link:hover {
    color: var(--login-blue);
}


/* ==========================================================================
   Inputs
   ========================================================================== */

.auth-login-input-wrap {
    width: 100%;
}

.auth-login-input {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid var(--login-border-strong);
    border-radius: 9px;

    background: #ffffff;

    outline: none;

    font-size: 13px;

    color: #111827;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.auth-login-input::placeholder {
    color: #9ca3af;
}

.auth-login-input:focus {
    border-color: #64748b;

    box-shadow:
        0 0 0 3px rgba(100, 116, 139, .08);
}


/* ==========================================================================
   Options
   ========================================================================== */

.auth-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 13px;
}

.auth-login-remember {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    cursor: pointer;

    font-size: 12px;

    color: #64748b;
}

.auth-login-checkbox {
    width: 15px;
    height: 15px;

    border: 1px solid #cbd5e1;
    border-radius: 4px;

    color: #111827;
}


/* ==========================================================================
   Submit
   ========================================================================== */

.auth-login-submit {
    width: 100%;
    height: 44px;

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

    margin-top: 17px;

    border: 1px solid var(--login-primary);
    border-radius: 9px;

    background: var(--login-primary);

    font-size: 13px;
    font-weight: 700;

    color: #ffffff;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .08s ease;
}

.auth-login-submit:hover {
    background: var(--login-primary-hover);
}

.auth-login-submit:active {
    transform: scale(.995);
}


/* ==========================================================================
   Divider
   ========================================================================== */

.auth-login-divider {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    gap: 10px;

    margin: 19px 0;
}

.auth-login-divider > span {
    height: 1px;

    background: #e5e7eb;
}

.auth-login-divider > div {
    font-size: 10px;

    color: #94a3b8;
}


/* ==========================================================================
   Google
   ========================================================================== */

.auth-login-google {
    width: 100%;
    height: 44px;

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

    gap: 9px;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: #ffffff;

    font-size: 12px;
    font-weight: 700;

    color: #374151;

    text-decoration: none;

    transition:
        background .15s ease,
        border-color .15s ease;
}

.auth-login-google:hover {
    border-color: #cbd5e1;

    background: #f8fafc;
}

.auth-login-google__icon {
    width: 18px;
    height: 18px;

    flex: 0 0 auto;
}


/* ==========================================================================
   Register
   ========================================================================== */

.auth-login-register {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 19px;

    padding-top: 17px;

    border-top: 1px solid #eef2f7;

    font-size: 12px;

    color: #64748b;
}

.auth-login-register a {
    font-weight: 700;

    color: #111827;

    text-decoration: none;
}

.auth-login-register a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.auth-login-footer {
    max-width: 360px;

    margin:
        13px
        auto
        0;

    font-size: 10px;

    line-height: 1.5;

    color: #94a3b8;

    text-align: center;

    word-break: keep-all;
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media screen and (max-width: 640px) {

    .auth-login-page {
        width: 100%;

        padding:
            8px
            0
            18px;
    }

    .auth-login-page *,
    .auth-login-page *::before,
    .auth-login-page *::after {
        box-sizing: border-box;
    }


    /* brand */

    .auth-login-brand {
        margin-bottom: 12px;
    }

    .auth-login-brand__logo {
        width: 36px;
        height: 36px;

        border-radius: 10px;

        font-size: 16px;
    }

    .auth-login-brand__name {
        font-size: 14px;
    }

    .auth-login-brand__caption {
        font-size: 6.5px;
    }


    /* card */

    .auth-login-card {
        padding: 15px 12px;

        border-radius: 11px;
    }


    /* header */

    .auth-login-header {
        margin-bottom: 14px;
    }

    .auth-login-title {
        font-size: 19px;
    }

    .auth-login-description {
        margin-top: 4px;

        font-size: 8.5px;

        line-height: 1.45;
    }


    /* error */

    .auth-login-error {
        gap: 6px;

        margin-bottom: 10px;

        padding: 7px 8px;

        border-radius: 7px;
    }

    .auth-login-error__icon {
        width: 17px;
        height: 17px;

        font-size: 10px;
    }

    .auth-login-error__text {
        font-size: 7.5px;
    }


    /* fields */

    .auth-login-field + .auth-login-field {
        margin-top: 10px;
    }

    .auth-login-label {
        margin-bottom: 4px;

        font-size: 8.5px;
    }

    .auth-login-password-link {
        margin-bottom: 4px;

        font-size: 10px;
    }


    /* input */

    .auth-login-input {
        height: 38px;

        padding:
            0
            9px;

        border-radius: 7px;

        font-size: 10px;
    }


    /* remember */

    .auth-login-options {
        margin-top: 8px;
    }

    .auth-login-remember {
        gap: 5px;

        font-size: 7.5px;
    }

    .auth-login-checkbox {
        width: 14px;
        height: 14px;
    }


    /* login */

    .auth-login-submit {
        height: 38px;

        margin-top: 11px;

        border-radius: 7px;

        font-size: 10px;
    }


    /* divider */

    .auth-login-divider {
        gap: 7px;

        margin:
            12px
            0;
    }

    .auth-login-divider > div {
        font-size: 10px;
    }


    /* google */

    .auth-login-google {
        height: 38px;

        gap: 6px;

        border-radius: 7px;

        font-size: 8.5px;
    }

    .auth-login-google__icon {
        width: 16px;
        height: 16px;
    }


    /* register */

    .auth-login-register {
        gap: 4px;

        margin-top: 12px;

        padding-top: 11px;

        font-size: 7.5px;
    }


    /* footer */

    .auth-login-footer {
        max-width: 280px;

        margin-top: 9px;

        font-size: 6.5px;

        line-height: 1.5;
    }

}


/* ==========================================================================
   <= 350px
   ========================================================================== */

@media screen and (max-width: 350px) {

    .auth-login-card {
        padding:
            13px
            9px;
    }

    .auth-login-brand__text {
        display: none;
    }

}