/* ──────────────────────────────────────────────
   iMUO Login — Google-only sign-in page
   File: dist/assets/css/login-google.css
────────────────────────────────────────────── */

:root {
    --primary:       #014ca1;
    --primary-dark:  #012f66;
    --primary-deep:  #001d40;
    --accent:        #ff8a00;
    --ink:           #0f1b2d;
    --muted:         #5b6b80;
    --line:          #e3e8ef;
    --surface:       #ffffff;
    --bg:            #f3f6fb;
    --radius:        18px;
}

* { box-sizing: border-box; }

.d-none { display: none !important; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ── Shell: brand | panel ── */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

/* ══ Brand panel ══ */
.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
    color: #fff;
    background:
        radial-gradient(1200px 600px at -10% -10%, rgba(255, 138, 0, .22), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(64, 140, 255, .35), transparent 60%),
        linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 55%, var(--primary-deep) 100%);
}

/* soft stave lines */
.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0, transparent 38px,
        rgba(255, 255, 255, .06) 38px, rgba(255, 255, 255, .06) 39px
    );
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}

.brand-notes i {
    position: absolute;
    color: rgba(255, 255, 255, .08);
    animation: float 9s ease-in-out infinite;
}
.brand-notes .n1 { top: 12%; left: 10%; font-size: 64px; }
.brand-notes .n2 { top: 18%; right: 12%; font-size: 84px; animation-delay: -2s; }
.brand-notes .n3 { bottom: 14%; left: 14%; font-size: 72px; animation-delay: -4s; }
.brand-notes .n4 { bottom: 20%; right: 10%; font-size: 58px; animation-delay: -6s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(4deg); }
}

.brand-inner {
    position: relative;
    max-width: 460px;
}

.brand-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: #fff;
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    margin-bottom: 28px;
}

.brand-inner h1 {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.5px;
    margin: 0 0 12px;
}

.brand-tag {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, .78);
    margin: 0 0 32px;
    line-height: 1.6;
}

.brand-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.brand-points li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .92);
}

.brand-points i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--accent);
    font-size: .95rem;
}

/* ══ Sign-in panel ══ */
.auth-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 410px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px 34px 30px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 20px 50px -20px rgba(1, 76, 161, .25);
    animation: rise .5s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

.auth-card-head { text-align: center; margin-bottom: 26px; }

.auth-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 16px;
}

.auth-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--primary);
    background: #e9f1fc;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.auth-card-head h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -.3px;
}

.auth-card-head p {
    color: var(--muted);
    font-size: .93rem;
    margin: 0;
}

/* ── Alert ── */
.auth-alert {
    font-size: .88rem;
    border-radius: 12px;
    padding: 11px 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.auth-alert.is-danger  { background: #fdecec; color: #a4161a; border-color: #f7c9cb; }
.auth-alert.is-success { background: #e8f7ee; color: #146c43; border-color: #bfe6cf; }
.auth-alert.is-info    { background: #eaf2fd; color: #0b4a96; border-color: #c8dcf7; }

/* ── Google button ── */
.g-btn {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #c9d1dc;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, border-color .2s, transform .1s;
}
.g-btn:hover  { background: #f8fafc; border-color: #aab6c5; box-shadow: 0 4px 14px rgba(15, 27, 45, .08); }
.g-btn:active { transform: scale(.99); }
.g-btn:focus-visible { outline: 3px solid rgba(1, 76, 161, .35); outline-offset: 2px; }
.g-btn.disabled { pointer-events: none; opacity: .75; }

.g-btn-icon { display: inline-flex; }

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 18px;
    color: #9aa6b5;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Info list ── */
.auth-info {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 12px;
}
.auth-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.45;
}
.auth-info i {
    color: var(--primary);
    width: 18px;
    margin-top: 3px;
    text-align: center;
}

.auth-foot {
    font-size: .75rem;
    color: #9aa6b5;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.auth-copy {
    margin: 22px 0 0;
    font-size: .78rem;
    color: #9aa6b5;
}

/* ── Update-app notice (old Android app) ── */
.update-box {
    text-align: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 12px;
    padding: 16px;
    font-size: .9rem;
    line-height: 1.5;
}
.update-box i { font-size: 1.4rem; display: block; margin-bottom: 6px; }

/* ══ PWA install sheet ══ */
.pwa-offcanvas { border-radius: 20px 20px 0 0; height: auto !important; }
.pwa-offcanvas-header { background: var(--primary); color: #fff; border-radius: 20px 20px 0 0; }
.pwa-header-logo { width: 28px; height: 28px; margin-right: 10px; background: #fff; border-radius: 6px; padding: 2px; }
.pwa-install-card { text-align: center; }
.pwa-install-logo { width: 72px; height: 72px; margin-bottom: 10px; }
.btn-install { background: var(--primary); color: #fff; border-radius: 12px; padding: 12px; font-weight: 600; }
.btn-install:hover { background: var(--primary-dark); color: #fff; }

/* ══ Responsive ══ */
@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }

    /* Mobile: blue band at top, card overlaps it */
    .auth-panel {
        justify-content: flex-start;
        padding: 0 16px 32px;
        background:
            linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%) top / 100% 230px no-repeat,
            var(--bg);
    }
    .auth-card {
        margin-top: 70px;
        padding: 34px 22px 26px;
    }
    .auth-logo {
        width: 84px;
        height: 84px;
        margin: -76px auto 16px;
        background: #fff;
        border-radius: 22px;
        padding: 10px;
        box-shadow: 0 10px 24px rgba(1, 47, 102, .25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-notes i, .auth-card { animation: none; }
}

/* ══ TEMPORARY: Play Store reviewer login ══ */
.rv-wrap { margin-top: 14px; text-align: center; }
.rv-toggle {
    background: none;
    border: 0;
    color: var(--primary);
    font-family: inherit;
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
}
.rv-toggle i { margin-right: 4px; }
.rv-form {
    margin-top: 10px;
    padding: 16px;
    text-align: left;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.rv-label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.rv-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    margin-bottom: 12px;
    border: 1px solid #c9d1dc;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
}
.rv-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(1, 76, 161, .15); }
.rv-pass { position: relative; }
.rv-pass .rv-input { padding-right: 46px; }
.rv-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
}
.rv-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
}
.rv-submit:disabled { opacity: .75; }
