/* public_html/members/assets/css/portal.login.css */

html,
body {
    min-height: 100%;
    background-color: #15100b;
    background-image:
        linear-gradient(180deg, rgba(22, 15, 10, 0.14), rgba(22, 15, 10, 0.24)),
        url("/assets/images/header_background.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.portal-shell {
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent;
}

.portal-glow {
    display: none;
}

.portal-main {
    width: min(100% - 28px, 1180px);
    margin: 0 auto;
}

.portal-login {
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.portal-login__wrap {
    width: min(520px, 100%);
    margin: 0 auto;
}

.portal-login__card {
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(212, 166, 58, 0.24);
    background:
        linear-gradient(180deg, rgba(48, 34, 27, 0.88), rgba(20, 15, 13, 0.94));
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.portal-login__head {
    text-align: center;
    margin-bottom: 20px;
}

.portal-login__crest {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.portal-login__crest-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(212, 166, 58, 0.96), rgba(128, 84, 35, 0.96));
    color: #fff8ea;
    font-size: 28px;
    font-weight: 900;
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.portal-login__head .eyebrow {
    margin-bottom: 14px;
    border-color: rgba(212, 166, 58, 0.22);
    background: rgba(116, 78, 37, 0.26);
    color: #f7d66f;
}

.portal-login__head h1 {
    margin: 0 0 10px;
    color: #fff8ea;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.34);
}

.portal-login__head p {
    margin: 0;
    color: rgba(247, 233, 205, 0.86);
    line-height: 1.7;
    font-size: 16px;
}

.portal-login__form {
    margin-top: 18px;
}

.portal-login .form-field span {
    color: #f7d66f;
}

.portal-login .form-field input {
    border-color: rgba(212, 166, 58, 0.22);
    background: rgba(18, 13, 10, 0.72);
    color: #fff8ea;
}

.portal-login .form-field input::placeholder {
    color: rgba(247, 233, 205, 0.48);
}

.portal-login .form-field input:focus {
    border-color: rgba(212, 166, 58, 0.48);
    box-shadow: 0 0 0 3px rgba(212, 166, 58, 0.12);
}

.portal-login .btn--primary {
    min-height: 54px;
    border-radius: 12px;
    border: 1px solid rgba(210, 164, 90, 0.30);
    background: linear-gradient(180deg, rgba(171, 46, 35, 0.98), rgba(122, 29, 24, 0.98));
    color: #f8efdc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 22px rgba(0, 0, 0, 0.22);
}

.portal-login .btn--primary:hover {
    background: linear-gradient(180deg, rgba(190, 52, 40, 0.98), rgba(137, 33, 27, 0.98));
    transform: translateY(-1px);
}

.portal-login__footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
    color: rgba(247, 233, 205, 0.70);
    font-size: 13px;
    line-height: 1.6;
}

.portal-login .alert {
    border-color: rgba(212, 166, 58, 0.22);
    background: rgba(18, 13, 10, 0.70);
    color: #fff8ea;
}

.portal-login .alert--error {
    border-color: rgba(171, 46, 35, 0.45);
}

.portal-login .alert--warning {
    border-color: rgba(212, 166, 58, 0.45);
}

@media (max-width: 700px) {
    html,
    body {
        background-size: 100% 100%;
    }

    .portal-main {
        width: min(100% - 20px, 1180px);
    }

    .portal-login {
        min-height: auto;
        padding: 18px 0 28px;
    }

    .portal-login__card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .portal-login__crest-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 26px;
    }

    .portal-login__head h1 {
        font-size: 34px;
    }

    .portal-login__footer {
        flex-direction: column;
        text-align: center;
    }
}

html[data-theme="light"] body,
body.light {
    background-color: #15100b;
    background-image:
        linear-gradient(180deg, rgba(22, 15, 10, 0.14), rgba(22, 15, 10, 0.24)),
        url("/assets/images/header_background.png");
}

html[data-theme="light"] .portal-login__card,
body.light .portal-login__card {
    background:
        linear-gradient(180deg, rgba(48, 34, 27, 0.88), rgba(20, 15, 13, 0.94));
    border-color: rgba(212, 166, 58, 0.24);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .portal-login__head h1,
body.light .portal-login__head h1 {
    color: #fff8ea;
}

html[data-theme="light"] .portal-login__head p,
html[data-theme="light"] .portal-login__footer,
body.light .portal-login__head p,
body.light .portal-login__footer {
    color: rgba(247, 233, 205, 0.76);
}