/* Apex Security - Cyberpunk Login Theme */
.apex-login-theme.login {
    background-color: #0f172a !important;
    /* Slate 900 */
    color: #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Premium Animated Background */
.apex-login-theme.login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
                linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    z-index: -1;
    animation: apex-login-bg-spin 60s linear infinite;
    pointer-events: none;
}

@keyframes apex-login-bg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logo */
.apex-login-theme.login h1 a {
    background: linear-gradient(135deg, #34d399 0%, #3b82f6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.5));
}

.apex-login-theme.login h1 a::after {
    content: 'APEX SECURITY';
    display: block;
}

/* Form Container */
.apex-login-theme.login form {
    background: rgba(30, 41, 59, 0.7) !important;
    /* Slate 800/70 */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border-radius: 16px;
    padding: 40px !important;
}

/* Inputs */
.apex-login-theme.login form .input,
.apex-login-theme.login form input[type=checkbox],
.apex-login-theme.login input[type=text] {
    /* Fallback */
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    transition: all 0.3s ease;
}

.apex-login-theme.login form .input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* Labels */
.apex-login-theme.login label {
    color: #94a3b8 !important;
    /* Slate 400 */
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Button */
.apex-login-theme.login .button-primary {
    position: relative;
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    color: #34d399 !important;
    text-shadow: none !important;
    border-radius: 8px !important;
    padding: 8px 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease !important;
    float: none !important;
    width: 100% !important;
    margin-top: 20px !important;
    height: auto !important;
    line-height: 2 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2), inset 0 0 10px rgba(16, 185, 129, 0.1);
    overflow: hidden;
    z-index: 1;
}

.apex-login-theme.login .button-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.apex-login-theme.login .button-primary:hover {
    transform: translateY(-2px);
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.5);
}

.apex-login-theme.login .button-primary:hover::before {
    opacity: 1;
}

/* Links */
.apex-login-theme.login #nav a,
.apex-login-theme.login #backtoblog a {
    color: #64748b !important;
    transition: color 0.2s;
}

.apex-login-theme.login #nav a:hover,
.apex-login-theme.login #backtoblog a:hover {
    color: #10b981 !important;
}

/* Hide WP Core stuff if wanted */
.apex-login-theme.login .message,
.apex-login-theme.login .success {
    border-left-color: #10b981 !important;
    background-color: rgba(30, 41, 59, 0.9) !important;
    color: #e2e8f0 !important;
}

.apex-login-theme.login .error {
    border-left-color: #ef4444 !important;
    background-color: rgba(30, 41, 59, 0.9) !important;
    color: #ef4444 !important;
}