/* SZIdentity - Bootstrap 5 Dark Overrides + Legacy Auth Styles */

body {
    background: #0b0f19 !important;
    min-height: 100vh;
}

/* Glowing background orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}
body::before {
    top: -100px;
    left: -100px;
    background: #3b82f6;
}
body::after {
    bottom: -100px;
    right: -100px;
    background: #a855f7;
}

.d-contents { display: contents; }

/* ---------- Auth Pages (login.php / registro.php) ---------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    width: 100%;
    max-width: 480px;
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.auth-subtitle { color: var(--bs-secondary-color); font-size: 0.95rem; }

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* Legacy card used by auth pages */
.card {
    background: rgba(20, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Alert boxes for auth pages */
.alert-box {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Auth form elements */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f8fafc;
    outline: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

/* Auth buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    gap: 0.5rem;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; }

/* OTP inputs */
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}
.otp-box {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
    outline: none;
    transition: all 0.3s;
}
.otp-box:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2); }
.timer-info { text-align: center; color: var(--bs-secondary-color); font-size: 0.9rem; margin-top: 1rem; }

/* ---------- Debit Card (index.php) ---------- */
.debit-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.debit-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #1e40af 70%, #0f172a 100%);
    z-index: 0;
}
.debit-card-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 60%);
    pointer-events: none;
}
.debit-card-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 60%);
    pointer-events: none;
}
.debit-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 2rem;
    gap: 0.15rem;
}
.debit-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    align-self: flex-end;
    margin-bottom: 0.15rem;
}
.debit-card-balance {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.15;
    text-align: center;
}
.debit-card-recharge {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.debit-card-recharge:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .debit-card-content { padding: 1.25rem 1rem; }
    .debit-card-balance { font-size: 1.5rem; }
}
