/**
 * Shared admin / tenant guest auth (Theme 01 alignment).
 * Loaded on central admin guest + tenant auth-guest layouts.
 */

.ab-auth-guest {
    font-family: "Rethink Sans", system-ui, -apple-system, sans-serif;
    margin: 0;
    background: var(--ab-surface-muted, #f4f7fb);
}

.ab-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ab-auth__brand {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(2rem, 5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(
        160deg,
        var(--primary-color, #163f34) 0%,
        rgba(var(--site-secondary-rgb, 4, 34, 62), 0.92) 55%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.ab-auth__brand-bg {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-size: cover !important;
    background-position: center !important;
    pointer-events: none;
}

.ab-auth__brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 20% 80%,
        rgba(var(--site-primary-rgb, 255, 109, 46), 0.18),
        transparent 50%
    );
    pointer-events: none;
}

.ab-auth__brand-content {
    position: relative;
    z-index: 1;
}

.ab-auth__back-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

.ab-auth__back-link:hover {
    color: #fff;
}

.ab-auth__title {
    font-family: "Rethink Sans", sans-serif;
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.ab-auth__subtitle,
.ab-auth__tagline {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.5;
}

.ab-auth__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ab-auth__bullets li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.ab-auth__bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--site-primary-solid, #163f34);
}

.ab-auth__form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--ab-surface-muted, #f4f7fb);
}

.ab-auth__card {
    width: min(100%, 440px);
    background: #fff;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: 0 16px 48px rgba(4, 34, 62, 0.08);
    border: 1px solid rgba(4, 34, 62, 0.08);
}

.ab-auth-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a2332;
}

.ab-auth-form .form-control {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border-color: rgba(4, 34, 62, 0.12);
}

.ab-auth-form .form-control:focus {
    border-color: var(--site-primary-solid, #163f34);
    box-shadow: 0 0 0 0.2rem rgba(var(--site-primary-rgb, 255, 109, 46), 0.15);
}

.ab-auth-form__link {
    color: var(--site-primary-solid, #163f34);
    font-weight: 600;
    text-decoration: none;
}

.ab-auth-form__link:hover {
    text-decoration: underline;
}

.ab-auth-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 999px;
    background: var(--site-primary-solid, #163f34);
    color: #fff;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ab-auth-form__submit:hover:not(:disabled) {
    background: var(--site-primary-dark, #e55a1f);
    color: #fff;
}

.ab-auth-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ab-auth__footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.ab-auth__card-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ab-auth__card-heading h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #1a2332;
}

.ab-auth__card-heading p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .ab-auth {
        grid-template-columns: 1fr;
    }

    .ab-auth__brand {
        padding: 1.75rem 1.5rem 2rem;
        min-height: auto;
    }

    .ab-auth__logo {
        max-width: 160px;
    }

    .ab-auth__title {
        font-size: 1.5rem;
    }

    .ab-auth__bullets {
        display: none;
    }
}
