:root {
    --auth-navy-950: #08121f;
    --auth-navy-900: #101c2d;
    --auth-burgundy: #7c1737;
    --auth-burgundy-dark: #5e1028;
    --auth-gold: #d5b36a;
    --auth-ink: #162235;
    --auth-line: rgba(16, 28, 45, .12);
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    color: var(--auth-ink);
    font-family: "Inter", Arial, sans-serif;
    background-color: var(--auth-navy-950);
    -webkit-font-smoothing: antialiased;
}

.bisc-auth-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 42px 24px;
    isolation: isolate;
}

.bisc-auth-page::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(118deg, rgba(5, 14, 27, .38) 0%, rgba(14, 29, 48, .14) 48%, rgba(31, 10, 21, .3) 100%),
        var(--auth-background);
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.bisc-auth-page::after {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(213, 179, 106, .13), transparent 31%),
        linear-gradient(to bottom, transparent 60%, rgba(4, 10, 19, .45));
}

.bisc-auth-shell {
    display: grid;
    width: min(100%, 960px);
    min-height: 570px;
    grid-template-columns: .9fr 1.1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 28px;
    background: rgba(255, 255, 255, .04);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
    backdrop-filter: saturate(108%);
    -webkit-backdrop-filter: saturate(108%);
}

.bisc-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 54px 46px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(155deg, rgba(9, 24, 42, .46), rgba(20, 43, 70, .34) 65%, rgba(89, 15, 43, .4));
}

.bisc-auth-brand::before,
.bisc-auth-brand::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(213, 179, 106, .18);
    border-radius: 50%;
}

.bisc-auth-brand::before {
    width: 330px;
    height: 330px;
    top: -190px;
    right: -190px;
}

.bisc-auth-brand::after {
    width: 240px;
    height: 240px;
    bottom: -150px;
    left: -140px;
}

.bisc-auth-logo-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    width: 214px;
    height: 214px;
    place-items: center;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

.bisc-auth-logo {
    display: block;
    width: 184px;
    height: 184px;
    object-fit: contain;
}

.bisc-auth-brand-eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: var(--auth-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.bisc-auth-brand-title {
    position: relative;
    z-index: 1;
    max-width: 310px;
    margin: 0;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.25;
}

.bisc-auth-brand-rule {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 2px;
    margin: 24px 0 20px;
    background: var(--auth-gold);
}

.bisc-auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 290px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.bisc-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 62px;
    background: rgba(255, 255, 255, .36);
}

.bisc-auth-kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--auth-burgundy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bisc-auth-kicker::before {
    width: 22px;
    height: 2px;
    content: "";
    background: var(--auth-burgundy);
}

.bisc-auth-title {
    margin: 0 0 10px;
    color: var(--auth-navy-900);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.18;
}

.bisc-auth-subtitle {
    margin: 0 0 28px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 10px;
    color: #16263d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 6px 18px rgba(16, 28, 45, .08);
}

.bisc-auth-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 0;
    border-left: 3px solid;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.55;
}

.bisc-auth-alert-danger {
    border-color: #c43c4f;
    color: #7a2432;
    background: #fff0f2;
}

.bisc-auth-alert-success {
    border-color: #2f9a6c;
    color: #196844;
    background: #edf9f3;
}

.bisc-auth-alert-warning {
    border-color: #d39826;
    color: #6f4b07;
    background: #fff8e8;
}

.bisc-auth-alert-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: var(--auth-burgundy);
    font-weight: 700;
    text-decoration: none;
}

.bisc-auth-field {
    margin-bottom: 19px;
}

.bisc-auth-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 7px;
    color: #14243a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 4px 12px rgba(16, 28, 45, .07);
}

.bisc-auth-input-wrap {
    position: relative;
}

.bisc-auth-input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    color: #8691a2;
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.bisc-auth-input {
    width: 100%;
    height: 52px;
    padding: 0 46px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    outline: 0;
    color: var(--auth-ink);
    font-family: inherit;
    font-size: 13px;
    background: rgba(255, 255, 255, .82);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.bisc-auth-input::placeholder {
    color: #8d98a8;
}

.bisc-auth-input:focus {
    border-color: rgba(124, 23, 55, .6);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 23, 55, .09);
}

.bisc-auth-input.input-error {
    border-color: #c43c4f;
}

.bisc-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    outline: 0;
    color: #778396;
    background: transparent;
    transform: translateY(-50%);
}

.bisc-auth-password-toggle:hover,
.bisc-auth-password-toggle:focus {
    color: var(--auth-burgundy);
    background: rgba(124, 23, 55, .07);
}

.bisc-auth-error {
    display: block;
    margin-top: 6px;
    color: #8f1f31;
    font-size: 11px;
    font-weight: 600;
}

.bisc-auth-captcha {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.bisc-auth-captcha-visual {
    display: flex;
    align-items: center;
    min-height: 52px;
    gap: 8px;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .9);
}

.bisc-auth-captcha-visual img {
    max-width: 100%;
    height: auto;
}

.bisc-auth-captcha-refresh {
    padding: 8px;
    border: 0;
    color: var(--auth-burgundy);
    background: transparent;
    cursor: pointer;
}

.bisc-auth-submit {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    background: linear-gradient(135deg, var(--auth-burgundy), var(--auth-burgundy-dark));
    box-shadow: 0 12px 24px rgba(124, 23, 55, .24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.bisc-auth-submit:hover,
.bisc-auth-submit:focus {
    color: #fff;
    outline: 0;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(124, 23, 55, .3);
}

.bisc-auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
}

.bisc-auth-link {
    color: var(--auth-burgundy);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.bisc-auth-link:hover,
.bisc-auth-link:focus {
    color: var(--auth-burgundy-dark);
    text-decoration: none;
}

.bisc-auth-secure-note {
    color: #556274;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 820px) {
    .bisc-auth-page {
        padding: 28px 18px;
    }

    .bisc-auth-shell {
        max-width: 560px;
        grid-template-columns: 1fr;
    }

    .bisc-auth-brand {
        min-height: 230px;
        padding: 30px 36px;
    }

    .bisc-auth-logo-wrap {
        width: 132px;
        height: 132px;
        margin-bottom: 14px;
    }

    .bisc-auth-logo {
        width: 112px;
        height: 112px;
    }

    .bisc-auth-brand-title {
        font-size: 22px;
    }

    .bisc-auth-brand-copy,
    .bisc-auth-brand-rule {
        display: none;
    }

    .bisc-auth-panel {
        padding: 38px 42px 42px;
    }
}

@media (max-width: 480px) {
    .bisc-auth-page {
        align-items: flex-start;
        padding: 14px;
    }

    .bisc-auth-shell {
        border-radius: 20px;
    }

    .bisc-auth-brand {
        min-height: 190px;
        padding: 24px;
    }

    .bisc-auth-logo-wrap {
        width: 108px;
        height: 108px;
    }

    .bisc-auth-logo {
        width: 92px;
        height: 92px;
    }

    .bisc-auth-brand-eyebrow {
        display: none;
    }

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

    .bisc-auth-panel {
        padding: 32px 24px 34px;
    }

    .bisc-auth-title {
        font-size: 29px;
    }

    .bisc-auth-captcha {
        grid-template-columns: 1fr;
    }

    .bisc-auth-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
