:root {
    --theme-font-sans-serif: "Alexandria", sans-serif !important;
    --theme-font-family-secondary: "Alexandria", sans-serif !important;
    --auth-ink: #16324f;
    --auth-muted: #7b8a9c;
    --auth-line: #e8eef5;
    --auth-accent: #2f7cc4;
    --auth-accent-soft: #e9f2fb;
    --auth-hero-from: rgba(19, 56, 90, 0.82);
    --auth-hero-to: rgba(13, 78, 106, 0.78);
}

body.auth-body {
    font-family: "Alexandria", sans-serif;
    background-color: #f4f6f9;
    margin: 0;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: var(--auth-card-width, 460px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(22, 50, 79, 0.08);
    padding: 2rem;
}

.auth-locale {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand img {
    height: 96px;
    max-width: 100%;
    object-fit: contain;
}

.auth-copyright {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

.auth-shell-split {
    padding: 0;
    align-items: stretch;
    gap: 0;
}

.auth-shell-split .auth-panel {
    flex: 0 0 clamp(380px, 34vw, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-shell-split .auth-card {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 28px;
    padding: 2.25rem 2rem;
}

.auth-hero {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    background: linear-gradient(135deg, #123a5c 0%, #0d4e6a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem;
}

.auth-hero-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--auth-hero-from) 0%, var(--auth-hero-to) 100%);
}

.auth-hero-watermark,
.auth-hero-name {
    position: relative;
}

.auth-hero-watermark {
    margin: auto 0;
    opacity: 0.28;
}

.auth-hero-watermark img {
    height: 150px;
    max-width: 60vw;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.auth-hero-name {
    align-self: flex-end;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: end;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.areas-title {
    text-align: center;
    color: var(--auth-ink);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.areas-subtitle {
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.areas-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.area-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.area-card:hover,
.area-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--auth-accent);
    box-shadow: 0 8px 18px rgba(47, 124, 196, 0.12);
}

.area-card-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.area-card-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
}

.area-card-title {
    display: block;
    color: var(--auth-ink);
    font-weight: 700;
    line-height: 1.4;
}

.area-card-description {
    display: block;
    color: var(--auth-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.area-card-arrow {
    flex: 0 0 auto;
    color: #c3ccd8;
    font-size: 1.15rem;
}

[dir="rtl"] .area-card-arrow {
    transform: scaleX(-1);
}

.areas-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--auth-line);
    text-align: center;
}

.areas-owner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--auth-ink);
    font-weight: 600;
    font-size: 0.85rem;
}

.areas-owner img {
    height: 22px;
}

.areas-owner span {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--auth-muted);
}

.areas-implementation {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

.areas-logout {
    margin-top: 0.5rem;
}

.areas-logout button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--auth-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .auth-shell-split .auth-panel {
        flex: 1 1 100%;
        padding: 1rem;
    }

    .auth-shell-split .auth-card {
        max-height: none;
        border-radius: 20px;
    }

    .auth-hero {
        display: none;
    }
}
