/*
 * Guest pages (layouts/app.blade.php: login, register, password reset, e-mail verification).
 * Built on AdminLTE 4 (.card, .login-card-body, .login-box-msg) and the CRM tokens from admin-theme.css.
 */
.auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(60rem 36rem at 100% 0%, rgba(var(--crm-primary-rgb), .14), transparent 60%),
        radial-gradient(48rem 30rem at 0% 100%, rgba(var(--crm-primary-rgb), .08), transparent 60%),
        var(--bs-tertiary-bg);
    background-attachment: fixed;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem 2rem;
}

.auth-theme-toggle {
    position: fixed;
    top: .75rem;
    inset-inline-end: .75rem;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.auth-card {
    width: 100%;
    max-width: 26rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--crm-shadow-lg);
    overflow: hidden;
}

.auth-page-split { background: var(--bs-body-bg); }
.auth-page-split .auth-wrap { padding: 0; display: block; }

/* Explicit LTR grid keeps the form on the physical left in this RTL app. */
.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    direction: ltr;
    min-height: 100vh;
    min-height: 100dvh;
}
.auth-form-panel {
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 2rem 3rem;
    min-width: 0;
}
.auth-split .auth-card {
    max-width: 30rem;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}
.auth-slideshow {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #263f40;
}
.auth-slides, .auth-slide { position: absolute; inset: 0; }
.auth-slide { opacity: 0; transition: opacity 1.4s ease-in-out; }
.auth-slide.is-active { opacity: 1; z-index: 1; }
.auth-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.auth-slide.is-active img, .auth-slide.is-leaving img {
    animation: auth-slow-zoom var(--auth-slide-duration, 8.4s) linear both;
}
.auth-slideshow.is-paused .auth-slide img { animation-play-state: paused; }
@keyframes auth-slow-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.auth-slideshow-toggle {
    position: absolute;
    z-index: 2;
    right: 1.5rem;
    bottom: 1.5rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    background: #15282bb3;
    color: #fff;
    line-height: 1;
}
.auth-slideshow-toggle svg { display: block; width: 1.25rem; height: 1.25rem; fill: currentColor; }
.auth-toggle-play { display: none; }
.auth-slideshow-toggle[aria-pressed="true"] .auth-toggle-pause { display: none; }
.auth-slideshow-toggle[aria-pressed="true"] .auth-toggle-play { display: block; }
.auth-slideshow-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 991.98px) {
    .auth-split { grid-template-columns: minmax(0, 1fr); }
    .auth-slideshow { display: none; }
    .auth-form-panel { padding: 4.5rem 1rem 2rem; }
    .auth-split .login-card-body, .auth-split .register-card-body { padding: 1.5rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-slide { transition: none; }
    .auth-slide.is-active img, .auth-slide.is-leaving img { animation: none; }
}

.auth-card .login-card-body,
.auth-card .register-card-body {
    padding: 2rem 1.5rem;
    border: 0;
    background: transparent;
}

@media (min-width: 768px) {
    .auth-card .login-card-body,
    .auth-card .register-card-body {
        padding: 2.5rem 2.25rem;
    }
}

.auth-logo {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
}

.auth-title {
    font-size: 1.35rem;
    margin-bottom: .25rem;
}

.auth-card .login-box-msg {
    padding: 0 0 1.5rem;
    color: var(--bs-secondary-color);
}

.auth-card .input-group-text {
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    min-width: 2.75rem;
    justify-content: center;
}

.auth-card .form-control {
    min-height: 2.75rem;
}

.auth-card .btn-primary {
    min-height: 2.75rem;
    font-weight: 600;
}

.auth-card .btn-password-toggle {
    border-color: var(--bs-border-color);
    color: var(--bs-secondary-color);
    background: var(--bs-body-bg);
}

.auth-card .btn-password-toggle:hover {
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
}

.auth-footer-links {
    text-align: center;
    margin: 1.25rem 0 0;
}

/* error pages (resources/views/errors) */
.error-code {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .02em;
    margin-bottom: .75rem;
    font-variant-numeric: tabular-nums;
}
