/* برق — خلفية شاشات الدخول/التسجيل: مزيج متحرك من ألوان الهوية بدل خلفية فارغة. */

.auth-shell {
    min-height: calc(100vh - 130px);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(160deg, var(--brand-ink) 0%, var(--brand-primary-dark) 45%, var(--brand-primary) 100%);
}

.auth-shell::before,
.auth-shell::after,
.auth-shell .auth-blob {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    z-index: 0;
}

.auth-shell::before {
    width: 420px;
    height: 420px;
    background: var(--brand-gold);
    top: -120px;
    inset-inline-start: -100px;
    animation: authFloat1 14s ease-in-out infinite;
}

.auth-shell::after {
    width: 380px;
    height: 380px;
    background: var(--brand-primary);
    bottom: -140px;
    inset-inline-end: -80px;
    animation: authFloat2 16s ease-in-out infinite;
}

.auth-shell .auth-blob {
    width: 260px;
    height: 260px;
    background: #ffffff;
    opacity: .08;
    top: 40%;
    inset-inline-start: 55%;
    animation: authFloat3 20s ease-in-out infinite;
}

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

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

@keyframes authFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, 20px); }
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    background: rgba(255, 255, 255, .97);
    border-radius: 22px;
    box-shadow: 0 1.5rem 3rem rgba(10, 6, 20, .35);
    border: 1px solid rgba(255, 255, 255, .4);
}

.auth-card .auth-logo-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* تسجيل الدخول/التسجيل: تسمية كل حقل ومحتوى صندوق الإدخال في المنتصف،
   لا عند حافة البطاقة — طلب صريح لكل شاشات الدخول (إدارة وشركة). */
.auth-card form .form-label {
    display: block;
    width: 100%;
    text-align: center;
}

.auth-card form .form-control {
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .auth-shell::before,
    .auth-shell::after,
    .auth-shell .auth-blob {
        animation: none;
    }
}
