/* 27-login.css — splash and sign-in screen (#login-overlay). The background matches the Android launch screen. */
.login-overlay {
    background: var(--c-bg);
    padding: 20px 16px;
    overflow-y: auto;
}

.splash { text-align: center; }
.splash__icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16); margin-bottom: 14px; }
.splash__title { margin: 0 0 6px; color: var(--c-text); font-size: 1.3rem; font-family: var(--font-ui); font-weight: 800; }
.splash__spinner {
    margin-top: 12px; display: inline-block; width: 24px; height: 24px;
    border: 3px solid rgba(15, 23, 42, 0.12); border-top-color: var(--c-primary); border-radius: 50%;
    animation: splashSpin 0.7s linear infinite;
}
@keyframes splashSpin { to { transform: rotate(360deg); } }
/* Under the spinner while a new device loads the user's data (core/sync-status.js _showFirstLoadStatus). */
.splash__status { margin: 12px 0 0; color: var(--c-text-muted); font-size: var(--fs-md); font-family: var(--font-ui); }
.splash__status[hidden] { display: none; }

.login-card {
    width: min(100%, 410px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: 34px 24px 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    text-align: center;
    animation: loginIn 0.45s ease-out both;
}
.login-card__icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22); }
.login-card__title { margin: 16px 0 6px; font-size: 1.6rem; font-weight: 800; color: var(--text-main); font-family: var(--font-ui); }
.login-card__tagline { color: var(--text-muted); font-size: 0.92rem; line-height: 1.75; margin: 0 auto 20px; max-width: 330px; }
.login-card__features { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; text-align: start; }
.login-card__features li {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 14px;
    background: var(--c-bg); border: 1px solid var(--c-border);
    color: var(--text-strong); font-size: 0.88rem; font-weight: 600;
}
.lf-icon { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 0.95rem; }
.lf-icon--blue { background: var(--c-primary-soft); color: var(--accent-text); }
.lf-icon--green { background: var(--c-success-soft); color: var(--success-text); }
.lf-icon--purple { background: var(--st-new-soft); color: var(--st-new); }
.login-card__google {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px; border: 0; border-radius: 14px;
    background: var(--c-primary); color: var(--c-on-primary);
    font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
    transition: transform var(--mo-fast) var(--ease-out), box-shadow var(--mo-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .login-card__google:hover { box-shadow: 0 14px 30px rgba(37, 99, 235, 0.36); }
}
.login-card__google:active { transform: scale(0.98); }
.login-card__note { color: var(--text-faint); font-size: 0.76rem; margin: 14px 0 0; line-height: 1.6; }
/* سياسة الخصوصية under the sign-in card and the access screens (Google Play needs it reachable before sign-in). */
.login-card__legal { margin: 12px 0 0; font-size: 0.8rem; line-height: 1.6; text-align: center; }
.login-card__legal a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
@keyframes loginIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .login-card { animation: none; } }

/* Returning user (js/instant.js): no splash while the scripts load — the app
   opens on this device's data. Removed again if sign-in is needed. */
html.instant-start #login-overlay { display: none !important; }

/* ===== App-wide last word: reduced motion =====
   Lives in the LAST stylesheet on purpose: several component files declare `transition … !important`,
   and among !important declarations the later one wins. Keep this block at the end of the cascade. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
