/* Anonymous pages: split brand/form layout and error pages. */

.app-auth {
    min-height: 100vh;
    background: #f4f6f9;
}

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

.app-auth-brand {
    position: relative;
    display: none;
    flex: 0 0 44%;
    align-items: center;
    padding: 3rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #1f2d3d 0%, #3c8dbc 60%, #39cccc 100%);
}

.app-auth-brand::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.app-auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.app-auth-logo,
.app-auth-mobile-logo {
    font-size: 1.4rem;
    font-weight: 700;
}

.app-auth-headline {
    margin: 2.5rem 0 1.5rem;
    font-weight: 300;
    line-height: 1.3;
}

.app-auth-features {
    padding: 0;
    list-style: none;
}

.app-auth-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.app-auth-features i {
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.75rem;
    padding-top: 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    text-align: center;
}

.app-auth-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.app-auth-topbar {
    align-self: flex-end;
    margin-bottom: auto;
}

.app-auth-card {
    width: 100%;
    max-width: 420px;
    margin-bottom: auto;
    padding: 2rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.75rem 2rem rgba(31, 45, 61, 0.08);
}

.app-auth-mobile-logo {
    margin-bottom: 1.5rem;
    color: #3c8dbc;
}

.app-auth-title {
    margin-bottom: 0.25rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.app-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(60, 141, 188, 0.12);
    color: #3c8dbc;
    font-size: 1.4rem;
}

.app-code-input {
    letter-spacing: 0.4rem;
}

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

    .app-auth-mobile-logo {
        display: none;
    }
}

/* Error pages */
.app-error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    background: radial-gradient(circle at top, #ffffff 0%, #eef2f7 100%);
}

.app-error-card {
    max-width: 520px;
    text-align: center;
}

.app-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    font-size: 2.5rem;
    animation: app-error-float 3s ease-in-out infinite;
}

.app-error-403 { background: rgba(255, 193, 7, 0.15); color: #d39e00; }
.app-error-404 { background: rgba(60, 141, 188, 0.12); color: #3c8dbc; }

.app-error-code {
    margin: 0.5rem 0;
    color: #adb5bd;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.3rem;
}

@keyframes app-error-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .app-error-icon {
        animation: none;
    }
}

/* Uploaded logo next to the application name */
.app-auth-logo-image {
    max-height: 2.5rem;
    max-width: 10rem;
    vertical-align: middle;
    object-fit: contain;
}
