/*
 * Abosoo Core staff authentication pages (login, forgot/reset
 * password, register, confirm-password) — a split-panel layout
 * built on the same --ui-* tokens as theme.css (loaded alongside
 * this file), not a separate design language. No Tailwind, no
 * Vite build step — plain CSS + Bootstrap 4 classes already
 * bundled with AdminLTE, matching how the rest of the app works.
 */

* { box-sizing: border-box; }

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

body.ui-auth-body {
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--ui-bg);
    color: var(--ui-text);
}

.ui-auth-shell {
    min-height: 100vh;
    display: flex;
}

/* ---------- Brand panel (left, hidden below 992px) ---------- */

.ui-auth-brand {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 42%;
    max-width: 480px;
    padding: 3rem 3rem 2.5rem;
    /* Brand green, not the app-wide --ui-primary blue — matches the
       member portal's --brand token and the Abosoo Core mark. */
    background: linear-gradient(155deg, #0b5d3b 0%, #063f28 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .ui-auth-brand { display: flex; }
}

.ui-auth-brand__pattern {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 320px;
    height: 320px;
    opacity: 0.14;
    pointer-events: none;
}

.ui-auth-brand__mark {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ui-auth-brand__mark-logo {
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* A soft glow instead of a boxed badge — the reversed logo's own
       white/gold carry enough weight on the gradient that it doesn't
       need a background chip, just a little lift. */
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

/* Echoes the diamond (Adinkra-style) accents in the mark's own band
   — a small, tasteful callback rather than another full pattern. */
.ui-auth-brand__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 1rem 0 0;
    position: relative;
    z-index: 1;
}

.ui-auth-brand__divider span {
    width: 6px;
    height: 6px;
    background: var(--ui-gold);
    transform: rotate(45deg);
    display: inline-block;
    flex-shrink: 0;
}

.ui-auth-brand__body {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

.ui-auth-brand__heading {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.ui-auth-brand__sub {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin: 0 0 1.75rem;
    max-width: 34ch;
}

.ui-auth-brand__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ui-auth-brand__list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.92);
}

.ui-auth-brand__list i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.ui-auth-brand__footer {
    position: relative;
    z-index: 1;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.62);
}

/* ---------- Content panel (right / full width on mobile) ---------- */

.ui-auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.ui-auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--ui-card-bg);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow);
    padding: 2.25rem 2.25rem 2rem;
}


.ui-auth-eyebrow {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ui-gold-dark);
    margin-bottom: 0.4rem;
}

.ui-auth-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ui-text);
    margin: 0 0 0.4rem;
}

.ui-auth-subtitle {
    font-size: 0.86rem;
    color: var(--ui-text-muted);
    line-height: 1.5;
    margin: 0 0 1.6rem;
}

.ui-auth-field {
    margin-bottom: 1.1rem;
}

.ui-auth-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ui-text-muted);
    margin-bottom: 0.4rem;
}

.ui-auth-card .form-control {
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
}

.ui-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.2rem 0 1.4rem;
}

.ui-auth-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    color: var(--ui-text-muted);
}

.ui-auth-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ui-primary);
    text-decoration: none;
}

.ui-auth-link:hover {
    color: var(--ui-primary-dark);
    text-decoration: underline;
}

.ui-auth-card .btn-primary,
.ui-auth-card .btn-outline-secondary,
.ui-auth-card .btn-danger {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--ui-radius-sm);
}

.ui-auth-card .btn-primary {
    background: var(--ui-primary);
    border-color: var(--ui-primary);
}

.ui-auth-card .btn-primary:hover,
.ui-auth-card .btn-primary:focus {
    background: var(--ui-primary-dark);
    border-color: var(--ui-primary-dark);
}

.ui-auth-footer {
    text-align: center;
    font-size: 0.84rem;
    color: var(--ui-text-muted);
    margin-top: 1.5rem;
}

.ui-auth-status {
    background: var(--ui-green-bg);
    color: #146c43;
    border-radius: var(--ui-radius-sm);
    padding: 0.65rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.ui-auth-notice {
    background: var(--ui-blue-bg);
    color: #1848a0;
    border-radius: var(--ui-radius-sm);
    padding: 0.75rem 0.9rem;
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
