@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

html {
    min-height: 100%;
    overflow-x: hidden;
}

:root {
    --aub-burgundy: #840132;
    --aub-burgundy-deep: #5e0123;
    --aub-burgundy-soft: #a21647;
    --aub-gold: #d5b16a;
    --aub-gold-soft: #efd8aa;
    --aub-gold-deep: #b58c41;
    --aub-ink: #20161a;
    --aub-muted: #8a7b80;
    --aub-line: #eadfd9;
    --aub-field: #f6f1ed;
    --aub-white: #ffffff;
    --aub-shadow: 0 28px 70px rgba(53, 10, 26, 0.26);
    --font-sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --font-serif: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.login-page {
    min-height: 100dvh;
    margin: 0;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 20%),
        radial-gradient(circle at bottom right, rgba(213, 177, 106, 0.18), transparent 28%),
        linear-gradient(180deg, #8f103f 0%, #76012d 52%, #50011e 100%);
}

.login-page .login-shell {
    position: relative;
    width: min(1110px, 100%);
    min-height: min(620px, calc(100dvh - 24px));
    height: auto;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.88fr);
    border-radius: 26px;
    overflow: hidden;
    background: var(--aub-white);
    box-shadow: var(--aub-shadow);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-page .login-welcome {
    position: relative;
    overflow: hidden;
    padding: 34px 44px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 24%),
        linear-gradient(140deg, var(--aub-burgundy-soft) 0%, var(--aub-burgundy) 46%, var(--aub-burgundy-deep) 100%);
    color: var(--aub-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.login-page .login-welcome::before {
    content: "";
    position: absolute;
    top: -26%;
    right: -28%;
    width: 440px;
    height: 700px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(70, 0, 26, 0.94) 0%, rgba(109, 4, 42, 0.9) 100%);
}

.login-page .login-welcome::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.login-page .welcome-logo,
.login-page .welcome-copy,
.login-page .welcome-shape {
    position: relative;
    z-index: 1;
}

.login-page .welcome-logo {
    width: 128px;
    height: 128px;
    display: block;
    object-fit: contain;
    transform: scale(1.12);
    transform-origin: top left;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.16));
}

.login-page .welcome-copy {
    max-width: 300px;
    margin-top: 28px;
}

.login-page .welcome-kicker {
    margin: 0 0 10px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.8);
}

.login-page .welcome-copy h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 4.2vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.login-page .welcome-subcopy {
    margin: 16px 0 0;
    max-width: 290px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.96rem;
    line-height: 1.7;
}

.login-page .welcome-shape {
    position: absolute;
    box-shadow: 0 20px 34px rgba(39, 4, 17, 0.24);
}

.login-page .welcome-shape-left {
    left: -34px;
    bottom: -56px;
    width: 188px;
    height: 188px;
    border-radius: 50%;
    background: linear-gradient(180deg, #b0194f 0%, #76012d 100%);
}

.login-page .welcome-shape-ball {
    left: 168px;
    bottom: 22px;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, var(--aub-gold-soft) 0%, var(--aub-gold) 28%, var(--aub-burgundy-soft) 62%, var(--aub-burgundy-deep) 100%);
}

.login-page .login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 42px;
    background:
        radial-gradient(circle at top right, rgba(213, 177, 106, 0.18), transparent 22%),
        linear-gradient(180deg, #fffdfb 0%, #fbf6f1 100%);
}

.login-page .login-panel::before {
    content: "";
    position: absolute;
    left: -110px;
    top: 0;
    width: 220px;
    height: 100%;
    background: #fffdfb;
    border-top-left-radius: 150px 300px;
    border-bottom-left-radius: 150px 300px;
}

.login-page .login-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -84px;
    width: 186px;
    height: 186px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, var(--aub-gold-soft) 0%, var(--aub-gold) 24%, var(--aub-burgundy-soft) 60%, var(--aub-burgundy-deep) 100%);
}

.login-page .panel-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
}

.login-page .panel-head {
    margin-bottom: 22px;
}

.login-page .panel-kicker {
    margin: 0 0 10px;
    color: var(--aub-burgundy);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.login-page .panel-head h2 {
    margin: 0;
    color: var(--aub-ink);
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 3.4vw, 3.1rem);
    line-height: 0.96;
    letter-spacing: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.login-page .panel-head p {
    margin: 8px 0 0;
    color: var(--aub-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.login-page .login-form {
    padding: 0;
}

.login-page .validation-message {
    margin-bottom: 12px;
    border-radius: 10px;
    border-left-width: 0;
    box-shadow: none;
    overflow-wrap: anywhere;
}

.login-page .field-frame {
    margin-bottom: 12px;
    position: relative;
}

.login-page .field-frame label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-page .input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--aub-field);
    border: 1px solid transparent;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.login-page .input-shell:hover {
    border-color: #ddcfca;
}

.login-page .input-shell:focus-within {
    border-color: rgba(132, 1, 50, 0.34);
    box-shadow: 0 0 0 4px rgba(132, 1, 50, 0.08);
}

.login-page .field-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: 0.76;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.login-page .email-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23840132' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' ry='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.login-page .lock-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23840132'%3E%3Cpath d='M17 8h-1V6a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zm-6 0V6a2 2 0 1 1 4 0v2zm1 9a2 2 0 1 1 2-2 2 2 0 0 1-2 2z'/%3E%3C/svg%3E");
}

.login-page .input-shell input {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--aub-ink);
    font-size: 0.92rem;
    font-family: inherit;
}

.login-page .input-shell input::placeholder {
    color: #9e9297;
}

.login-page .toggle-password {
    border: 0;
    background: transparent;
    color: var(--aub-burgundy);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
}

.login-page .field-validation-error {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.login-page .login-meta {
    margin: 12px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-page .remember-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7b6c72;
    font-size: 0.74rem;
    cursor: pointer;
    user-select: none;
}

.login-page .remember-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-page .remember-box {
    width: 15px;
    height: 15px;
    position: relative;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #cec1c6;
}

.login-page .remember-box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    opacity: 0;
}

.login-page .remember-toggle input:checked + .remember-box {
    background: var(--aub-burgundy);
    border-color: var(--aub-burgundy);
}

.login-page .remember-toggle input:checked + .remember-box::after {
    opacity: 1;
}

.login-page .meta-link {
    color: #71666b;
    font-size: 0.74rem;
    text-decoration: none;
}

.login-page .meta-link:hover {
    color: var(--aub-burgundy);
}

.login-page .login-btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--aub-burgundy-soft) 0%, var(--aub-burgundy-deep) 100%);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 24px rgba(85, 5, 32, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease;
    position: relative;
    overflow: hidden;
}

.login-page .login-btn::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.login-page .login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 30px rgba(85, 5, 32, 0.24);
}

.login-page .login-btn:active {
    transform: translateY(0);
}

@media (max-width: 960px) {
    body.login-page {
        align-items: flex-start;
        padding: 14px;
    }

    .login-page .login-shell {
        min-height: auto;
        height: auto;
        max-height: none;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        max-width: 650px;
    }

    .login-page .login-panel::before,
    .login-page .login-panel::after {
        display: none;
    }

    .login-page .login-welcome {
        min-height: 238px;
        padding: 26px 26px 88px;
    }

    .login-page .login-panel {
        align-items: stretch;
        padding: 0 22px 22px;
        margin-top: -56px;
        background: transparent;
    }

    .login-page .panel-content {
        max-width: none;
        padding: 26px 24px 24px;
        border-radius: 24px;
        background:
            radial-gradient(circle at top right, rgba(213, 177, 106, 0.14), transparent 26%),
            linear-gradient(180deg, #fffdfb 0%, #fbf6f1 100%);
        border: 1px solid rgba(132, 1, 50, 0.08);
        box-shadow: 0 24px 46px rgba(53, 10, 26, 0.16);
    }

    .login-page .welcome-copy {
        margin-top: 16px;
        max-width: 420px;
    }

    .login-page .welcome-subcopy {
        max-width: 420px;
        font-size: 0.9rem;
    }

    .login-page .welcome-shape-left {
        width: 150px;
        height: 150px;
        left: -48px;
        bottom: -72px;
    }

    .login-page .welcome-shape-ball {
        width: 132px;
        height: 132px;
        left: 148px;
        bottom: 2px;
    }
}

@media (max-width: 640px) {
    body.login-page {
        align-items: flex-start;
        padding: 0;
    }

    .login-page .login-shell {
        width: 100%;
        min-height: 100dvh;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .login-page .login-welcome {
        min-height: 222px;
        padding: 26px 20px 84px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .login-page .login-welcome::after {
        inset: 14px;
        border-radius: 22px;
    }

    .login-page .login-panel {
        margin-top: -44px;
        padding: 0 14px 22px;
    }

    .login-page .welcome-logo {
        width: 94px;
        height: 94px;
        transform: none;
    }

    .login-page .welcome-copy {
        margin-top: 12px;
        max-width: none;
    }

    .login-page .welcome-copy h1 {
        font-size: 2.2rem;
    }

    .login-page .welcome-kicker {
        font-size: 0.64rem;
        letter-spacing: 0.19em;
    }

    .login-page .welcome-subcopy {
        max-width: none;
        font-size: 0.84rem;
        line-height: 1.65;
    }

    .login-page .welcome-shape-left {
        width: 124px;
        height: 124px;
        left: -30px;
        bottom: -48px;
    }

    .login-page .welcome-shape-ball {
        width: 102px;
        height: 102px;
        left: auto;
        right: 14px;
        bottom: 14px;
    }

    .login-page .panel-content {
        max-width: 100%;
        padding: 24px 18px 20px;
        border-radius: 24px;
    }

    .login-page .panel-head {
        margin-bottom: 18px;
    }

    .login-page .panel-head h2 {
        font-size: 2.15rem;
    }

    .login-page .panel-head p {
        margin-top: 10px;
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .login-page .field-frame {
        margin-bottom: 14px;
    }

    .login-page .field-frame label {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0 0 0.45rem;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border: 0;
        color: var(--aub-burgundy-deep);
        font-size: 0.79rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .login-page .input-shell,
    .login-page .login-btn {
        min-height: 54px;
        border-radius: 16px;
    }

    .login-page .input-shell {
        padding: 0 15px;
        gap: 10px;
    }

    .login-page .input-shell input {
        min-width: 0;
        font-size: 0.96rem;
    }

    .login-page .toggle-password {
        font-size: 0.64rem;
    }

    .login-page .field-validation-error {
        margin-top: 6px;
        font-size: 0.76rem;
    }

    .login-page .login-meta {
        margin: 6px 0 18px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .login-page .remember-toggle {
        font-size: 0.83rem;
        gap: 10px;
    }

    .login-page .remember-box {
        width: 17px;
        height: 17px;
        border-radius: 4px;
    }

    .login-page .validation-message {
        margin-bottom: 16px;
        border-radius: 14px;
    }
}

@media (max-width: 400px) {
    .login-page .login-welcome {
        min-height: 208px;
        padding: 22px 16px 76px;
    }

    .login-page .panel-content {
        padding: 22px 16px 18px;
    }

    .login-page .welcome-copy h1 {
        font-size: 1.98rem;
    }

    .login-page .panel-head h2 {
        font-size: 2rem;
    }

    .login-page .panel-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }

    .login-page .input-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .login-page .field-icon {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .login-page .toggle-password {
        letter-spacing: 0.06em;
    }
}
