html:has(body.login-page),
body.login-page {
    height: 100%;
    overflow: hidden;
}

.login-page {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f3f4f6 !important;
    color: #000;
    font-family: "mic-32-new-web", Georgia, "Times New Roman", serif;
}

.login-split {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #0b1f33;
}

.login-panel {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(40px, 7vw);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: left;
    width: min(420px, calc(100% - 48px));
    max-height: calc(100vh - 48px);
    margin: 0;
    padding: 28px 36px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(11, 31, 51, 0.28);
}

.login-logo {
    display: block;
    align-self: flex-start;
    height: 84px;
    width: auto;
    margin-bottom: 12px;
}

.login-kicker {
    display: inline-block;
    align-self: flex-start;
    width: fit-content;
    margin: 0 0 10px;
    padding: 0.35em 0.65em;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: none;
    color: #0b1f33;
    background: #fae600;
    border-radius: 6px;
}

.login-title {
    margin: 0;
    font-family: "mic-32-new-web", Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.045em;
    text-align: left;
    color: #000;
}

.login-subtitle {
    max-width: 26rem;
    margin: 8px 0 16px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.72);
}

.login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff1f1;
    color: #8f1d1d;
    font-size: 15px;
}

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

.login-field {
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
}

.login-label {
    display: block;
    width: auto;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: none;
    color: #000;
}

.login-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid rgba(11, 31, 51, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #000;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    box-shadow: 0 1px 2px rgba(11, 31, 51, 0.04);
}

.login-input:focus {
    border-color: #0b1f33;
    box-shadow: 0 0 0 4px rgba(250, 230, 0, 0.55);
}

.login-btn {
    width: 100%;
    margin-top: 4px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: #fae600;
    color: #0b1f33;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.login-btn:hover {
    background: #e6d100;
    transform: translateY(-2px);
}

.login-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-top: 14px;
}

.login-links a {
    color: #000;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: underline;
    text-decoration-color: #fae600;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.login-links a:hover {
    color: #e6d100;
}

.login-legal {
    margin-top: 18px;
    text-align: left;
}

.login-legal p {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.55);
}

.login-photo {
    position: absolute;
    inset: 0;
    height: 100%;
    overflow: hidden;
    background: #0b1f33;
}

.login-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 40%;
}

.login-photo-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.85) 0.55px, transparent 0.65px);
    background-size: 7px 7px;
    opacity: 0.28;
    pointer-events: none;
}

.login-photo-shade {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(11, 31, 51, 0.72), transparent);
    pointer-events: none;
}

.login-photo-caption {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: -0.03em;
}

@media (max-width: 860px) {
    .login-panel {
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(420px, calc(100% - 32px));
        padding: 24px 22px 28px;
    }
}
