/**
 * HELIOS MODULE: LOGIN & SECURITY PORTAL
 * Styles for view_login.php, login.php, 403.php
 */

/* 1. Login Page Layout */
.login-body {
    background-color: #0c0d10;
    background-image: 
        radial-gradient(circle at 50% 15%, rgba(192, 132, 252, 0.07) 0%, transparent 60%),
        radial-gradient(circle at 80% 85%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0c0d10 0%, #08080a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
    color: #f4f4f5;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: #14161b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 1px 1px rgba(255, 255, 255, 0.04);
    animation: cardAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 2. Brand Header */
.brand-header {
    text-align: center;
    margin-bottom: 24px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.25);
    color: #d8b4fe;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.brand-title {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.brand-title .ranger-badge {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    color: #0c0d10;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* 3. Alert Box */
.alert-error-box {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

/* 4. Form Groups & Inputs */
.login-card .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.login-card .form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 7px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.login-card .form-control,
.input-wrapper .form-control {
    width: 100%;
    height: 44px;
    padding: 10px 42px 10px 42px !important;
    background: #0e1015 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 500;
    letter-spacing: 0.3px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-card .form-control:focus,
.input-wrapper .form-control:focus {
    border-color: #c084fc !important;
    background: #131620 !important;
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.18), 0 0 16px rgba(192, 132, 252, 0.12) !important;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent-glow, #c084fc);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    border-radius: 4px;
    transition: color 0.2s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--accent-glow, #c084fc);
}

.capslock-warn {
    display: none;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
    align-items: center;
    gap: 5px;
}

/* 5. Submit Button */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3d2a4a 0%, #1e1526 100%);
    color: #ffffff;
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #4d335c 0%, #261932 100%);
    border-color: rgba(192, 132, 252, 0.55);
    box-shadow: 0 4px 20px rgba(192, 132, 252, 0.25);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 6. Footer Section */
.login-footer {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-copyright {
    font-size: 11px;
    color: #71717a;
    font-weight: 500;
    line-height: 1.5;
}

.footer-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

/* 403 Forbidden Styles */
.forbidden-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #050b14;
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(239, 68, 68, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, #050b14 0%, #0c1626 100%);
    color: #ffffff;
}

.forbidden-container {
    width: 100%;
    max-width: 520px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-top: 2px solid #ef4444;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(239, 68, 68, 0.2);
}

.icon-circle-403 {
    width: 70px;
    height: 70px;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ef4444;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    animation: pulse-red 2s infinite ease-in-out;
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 35px rgba(239, 68, 68, 0.7); }
}

.badge-403 {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid #ef4444;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.forbidden-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: #ffffff;
}

.forbidden-desc {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.user-info-box-403 {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #f1f5f9;
    text-align: left;
}

.btn-group-403 {
    display: flex;
    gap: 12px;
    justify-content: center;
}
