/* Shared split-screen layout for auth pages (login, forgot/reset password).
   Pages set --auth-primary / --auth-secondary inline from Utility settings
   (super-admin controlled theme colors) before this stylesheet applies them. */

body > footer {
    display: none;
}

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

/* ── Left: visual panel ─────────────────────────────────────────────── */
.auth-visual {
    position: relative;
    flex: 0 0 55%;
    max-width: 55%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--auth-primary, #6571ff) 0%, #1e1b4b 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 3.5rem;
}

.auth-visual__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
}

.auth-visual__blob--1 {
    width: 420px;
    height: 420px;
    background: var(--auth-secondary, #2dd4bf);
    top: -120px;
    left: -100px;
    animation: authBlobFloat1 16s ease-in-out infinite;
}

.auth-visual__blob--2 {
    width: 320px;
    height: 320px;
    background: #a855f7;
    bottom: -100px;
    right: -80px;
    animation: authBlobFloat2 20s ease-in-out infinite;
}

.auth-visual__blob--3 {
    width: 260px;
    height: 260px;
    background: #38bdf8;
    bottom: 20%;
    left: 8%;
    animation: authBlobFloat3 14s ease-in-out infinite;
}

@keyframes authBlobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 60px) scale(1.1); }
}

@keyframes authBlobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -30px) scale(1.15); }
}

@keyframes authBlobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(0.9); }
}

.auth-visual__content {
    position: relative;
    z-index: 1;
    max-width: 460px;
    color: #fff;
}

.auth-visual__logo-link {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.auth-visual__logo {
    max-height: 40px;
    width: auto;
}

.auth-visual__title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.auth-visual__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2.25rem;
}

.auth-visual__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

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

.auth-visual__features i {
    font-size: 1.1rem;
    color: var(--auth-secondary, #2dd4bf);
}

/* ── Right: form panel ──────────────────────────────────────────────── */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 2.5rem 1.5rem;
}

.auth-form-panel__inner {
    width: 100%;
    max-width: 380px;
}

.auth-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.auth-title {
    font-weight: 700;
    font-size: 1.6rem;
    color: #1f2937;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
}

.auth-input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.auth-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(101, 113, 255, 0.15);
}

.auth-input-group .input-group-text {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right: none;
    padding: 0.7rem 0.85rem;
}

.auth-input {
    border: 1px solid #e2e8f0;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
}

.auth-input:focus {
    border-color: var(--auth-primary, #6571ff);
    box-shadow: none;
    background-color: #fff;
}

.auth-input.is-invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.auth-toggle-btn {
    border: 1px solid #e2e8f0;
    border-left: none;
    background-color: #f8fafc;
    color: #6b7280;
    padding: 0.7rem 0.85rem;
}

.auth-toggle-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.auth-checkbox .form-check-input:checked {
    background-color: var(--auth-primary, #6571ff);
    border-color: var(--auth-primary, #6571ff);
}

.auth-btn {
    background: linear-gradient(135deg, var(--auth-primary, #6571ff) 0%, #4338ca 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    transition: all 0.25s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(101, 113, 255, 0.3);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-link {
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.ti-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 991.98px) {
    .auth-split {
        display: block;
    }

    .auth-form-panel {
        min-height: 100vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-visual__blob {
        animation: none;
    }
}
