/* ==========================================================================
   Default theme — auth pages
   Auth layout uses core.css primitives plus the helpers below.
   ========================================================================== */

/* ---------- Split layout ---------- */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

.auth-visual {
    flex: 1 1 50%;
    position: relative;
    align-items: center;
    padding: 3.5rem;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 40%, var(--bs-dark) 100%);
    color: #fff;
    overflow: hidden;
}

.auth-visual-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(38rem 38rem at 15% 15%, rgba(255, 255, 255, 0.22), transparent 60%),
        radial-gradient(30rem 30rem at 85% 80%, rgba(255, 255, 255, 0.14), transparent 60%);
    pointer-events: none;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}

.auth-visual-title {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.auth-visual-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.auth-visual-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.9rem;
}

.auth-visual-points .icon-base {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.auth-form-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background-color: var(--bs-body-bg);
}

.auth-form-inner {
    width: 100%;
    max-width: 26.5rem;
}

.auth-brand {
    color: inherit;
    text-decoration: none;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
}

/* ---------- Form helpers ---------- */

/* The shared <x-form.*> components wrap fields in .form-group, which Bootstrap 5
   no longer ships. Restore sane vertical rhythm inside the theme. */
.form-group {
    margin-bottom: 1rem;
}

.auth-form-inner .form-label {
    font-weight: 500;
}

.form-text {
    font-size: 0.8125rem;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
    margin: 1.5rem 0;
}

.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background-color: var(--bs-border-color);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .auth-visual {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .auth-form-panel {
        padding: 1.5rem 1rem;
    }
}
