/* ============================================================
   login_register.css
   Place this file at:  assets/css/login_register.css
   Include in login.php and register.php with:
   <link rel="stylesheet" href="<?php echo ROOT; ?>assets/css/login_register.css">
   ============================================================ */

/* ── Body: flex column so banner sits ABOVE the card ── */
body {
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── App download banner ────────────────────────────────────────────────── */
.app-banner {
    /* Reset any inherited display:none; JS controls visibility */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 16px;
    color: white;
    text-align: center;
    font-size: 14px;
    /* Must NOT exceed the card width */
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

.app-banner strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.app-banner a {
    display: inline-block;
    margin-top: 8px;
    background: white;
    color: #667eea;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.app-banner a:hover {
    background: #f0f4ff;
}

/* ── Login container: must fill available width, not be pushed ── */
.login-container {
    max-width: 1000px;
    width: 100%;
    /* Remove any margin-top that was causing the push */
    margin-top: 0;
}

/* ── Register container same fix ── */
.register-container {
    max-width: 600px;
    width: 100%;
    margin-top: 0;
}

/* ── Meta bar (Help Center link, centered) ── */
.login-meta,
.reg-meta {
    display: flex;
    justify-content: center;   /* ← centered, not space-between */
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.login-meta a,
.reg-meta a {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #f0f4ff;
    border-radius: 20px;
    transition: background 0.2s;
}

.login-meta a:hover,
.reg-meta a:hover {
    background: #e0e8ff;
    text-decoration: none;
}

/* ── "Need help?" contact line at bottom — keep, style nicely ── */
.contact-info {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #a0aec0;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ── Confirmed-email success alert (comes from ?confirmed=1) ── */
.alert.alert-success {
    display: block; /* override inline display:none default */
}

/* ── Responsive: on small screens stack everything cleanly ── */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .app-banner {
        margin-bottom: 12px;
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 10px;
    }

    .login-container {
        flex-direction: column;
        border-radius: 16px;
    }

    .login-left {
        padding: 32px 24px;
    }

    .login-right {
        padding: 32px 24px;
    }

    .register-container {
        padding: 32px 22px;
        border-radius: 16px;
    }
}
