/* ==========================================================================
   أرباحي — Auth pages CSS (Task ID B2)
   --------------------------------------------------------------------------
   Pages: /user/login.php, /user/register.php,
          /user/forgot_password.php, /user/reset_password.php,
          /user/pending.php
   Scope: ONLY styles unique to the auth pages. Loaded via $extraHead in
          public_header.php (auth pages do NOT use the user dashboard header).

   Design system: dark theme (#0a0a14 bg), glass cards, primary #6c5ce7,
   Cairo font, 12px border radius. Matches the homepage look.
   ========================================================================== */

/* ===== Page wrapper (centers the auth card vertically) ===== */
.auth-wrap {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 80px;
}

/* ===== Glass auth card ===== */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(20, 20, 35, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    color: #f5f5fa;
}

/* Brand row at top of card */
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}
.auth-logo img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 12px;
}
.auth-logo h1 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 800;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-logo p {
    color: #b8b8c8;
    font-size: 0.86rem;
    margin: 0;
}

/* ===== Form groups ===== */
.auth-card .form-group,
.auth-card .form-row {
    margin-bottom: 16px;
}
.auth-card .form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f5f5fa;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.auth-card .form-group label i { color: #a29bfe; }
.auth-card .form-hint,
.auth-card .form-text {
    margin-top: 6px;
    font-size: 0.76rem;
    color: #b8b8c8;
}

/* Inputs — dark glass */
.auth-card .form-control,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="tel"] {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #f5f5fa;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-card .form-control:focus,
.auth-card input:focus {
    border-color: rgba(108, 92, 231, 0.55);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14);
    background: rgba(108, 92, 231, 0.06);
}
.auth-card input::placeholder { color: rgba(184, 184, 200, 0.45); }

/* ===== Primary button ===== */
.auth-card .btn-primary,
.auth-card .btn-block {
    width: 100%;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 22px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-top: 4px;
}
.auth-card .btn-primary:hover,
.auth-card .btn-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(108, 92, 231, 0.5);
}
.auth-card .btn-primary:active,
.auth-card .btn-block:active {
    transform: translateY(0) scale(0.98);
}
.auth-card .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Secondary link / switch-to-register row ===== */
.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 0.86rem;
    color: #b8b8c8;
}
.auth-switch a {
    color: #a29bfe;
    font-weight: 700;
    text-decoration: none;
}
.auth-switch a:hover { color: #fff; text-decoration: underline; }

/* ===== Alerts inside auth card ===== */
.auth-card .alert {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}
.auth-card .alert-danger {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #fca5a5;
}
.auth-card .alert-success {
    background: rgba(0, 184, 148, 0.12);
    border: 1px solid rgba(0, 184, 148, 0.3);
    color: #6ee7b7;
}
.auth-card .alert-info {
    background: rgba(116, 185, 255, 0.10);
    border: 1px solid rgba(116, 185, 255, 0.28);
    color: #74b9ff;
}
.auth-card .alert-warning {
    background: rgba(253, 203, 110, 0.12);
    border: 1px solid rgba(253, 203, 110, 0.3);
    color: #fdcb6e;
}

/* ===== Checkbox / remember-me row ===== */
.auth-card .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #b8b8c8;
    font-size: 0.84rem;
}
.auth-card .form-check input { width: 16px; height: 16px; accent-color: #6c5ce7; }
.auth-card .form-check a { color: #a29bfe; text-decoration: none; }
.auth-card .form-check a:hover { text-decoration: underline; }

/* ===== Divider (OR text) ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b8b8c8;
    font-size: 0.78rem;
    margin: 18px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* ===== VPN warning box ===== */
.auth-vpn-warn {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fca5a5;
    font-size: 0.84rem;
    margin-bottom: 14px;
    line-height: 1.5;
}
.auth-vpn-warn i { color: #e74c3c; margin-inline-end: 6px; }

/* ==========================================================================
   v2.1 — Professional VPN Block Banner (reusable)
   --------------------------------------------------------------------------
   Used by: /user/login.php, /user/register.php
   Replaces the previous inline-styled banner that was hard to maintain and
   looked unprofessional (mismatched reds, no consistent spacing, no clear
   visual hierarchy). This class lives in auth-page.css so all auth pages
   get a unified look.
   ========================================================================== */
.vpn-block-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.10) 0%, rgba(192, 57, 43, 0.05) 100%);
    border: 1px solid rgba(231, 76, 60, 0.30);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    overflow: hidden;
    animation: authFadeUp 0.4s ease-out;
}
.vpn-block-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 50%, #e74c3c 100%);
    background-size: 200% 100%;
    animation: authVpnShimmer 3s linear infinite;
}
.vpn-block-banner-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8b87;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.vpn-block-banner-body {
    flex: 1;
    min-width: 0;
}
.vpn-block-banner-title {
    color: #ffd6d3;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}
.vpn-block-banner-title i { color: #e74c3c; font-size: 0.95rem; }
.vpn-block-banner-text {
    color: rgba(255, 200, 195, 0.85);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.vpn-block-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    color: rgba(255, 215, 210, 0.75);
}
.vpn-block-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.22);
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    direction: ltr;
}
.vpn-block-banner-meta i { color: rgba(255, 200, 195, 0.55); }
.vpn-block-banner-retry {
    background: linear-gradient(135deg, #27ae60 0%, #20c172 100%);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    min-height: 44px;
    text-decoration: none;
}
.vpn-block-banner-retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.35);
}
.vpn-block-banner-notice {
    margin-top: 10px;
    font-size: 0.78rem;
    color: rgba(255, 200, 195, 0.55);
    font-style: italic;
}
@keyframes authVpnShimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
@keyframes authFadeUp { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0) } }

@media (max-width: 480px) {
    .vpn-block-banner { flex-direction: column; padding: 18px; }
    .vpn-block-banner-icon { margin: 0 auto; }
}

/* ===== Mobile tweaks ===== */
@media (max-width: 480px) {
    .auth-card { padding: 24px 18px; border-radius: 14px; }
    .auth-logo img { width: 48px; height: 48px; }
}
