﻿/**
 * Custom Login Page Styles
 * Theme: News CQNN - Dynamic Color Support
 */

/* ===================== ROOT VARIABLES ===================== */
:root {
    /* Default fallback colors (red theme) */
    --dg-primary: #8B0000;
    --dg-primary-light: #c62828;
    --dg-primary-dark: #6d0000;
    --dg-gradient: linear-gradient(135deg, #8B0000 0%, #c62828 100%);
    
    /* Login-specific variables */
    --login-primary: var(--dg-primary);
    --login-primary-hover: var(--dg-primary-dark);
    --login-primary-light: var(--dg-primary-light);
    --login-gradient: var(--dg-gradient);
    
    /* Static colors */
    --bg-dark: #0c0a1d;
    --bg-card: rgba(255, 255, 255, 0.98);
    --text-primary: #1e1b4b;
    --text-secondary: #6b7280;
    --text-light: #f8fafc;
    --border-color: #e5e7eb;
    --input-bg: #f9fafb;
    --success: #10b981;
    --error: #ef4444;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================== BACKGROUND ===================== */
body.login {
    font-family: 'Be Vietnam Pro', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--bg-dark);
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient background */
body.login::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(var(--theme-rgb, 139, 0, 0), 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(var(--theme-rgb, 139, 0, 0), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 20%, rgba(var(--theme-rgb, 139, 0, 0), 0.12) 0%, transparent 40%);
    animation: bgPulse 8s ease-in-out infinite alternate;
    z-index: 0;
}

/* Theme-specific backgrounds */
body.login.theme-red { --theme-rgb: 139, 0, 0; }
body.login.theme-yellow { --theme-rgb: 245, 127, 23; }
body.login.theme-blue { --theme-rgb: 13, 71, 161; }
body.login.theme-green { --theme-rgb: 27, 94, 32; }

body.login.theme-red::before {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(198, 40, 40, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 20%, rgba(139, 0, 0, 0.12) 0%, transparent 40%);
}

body.login.theme-yellow::before {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(245, 127, 23, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(249, 168, 37, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 20%, rgba(245, 127, 23, 0.12) 0%, transparent 40%);
}

body.login.theme-blue::before {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(13, 71, 161, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(21, 101, 192, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 20%, rgba(13, 71, 161, 0.12) 0%, transparent 40%);
}

body.login.theme-green::before {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(27, 94, 32, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(46, 125, 50, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 20%, rgba(27, 94, 32, 0.12) 0%, transparent 40%);
}

@keyframes bgPulse {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

/* ===================== CIRCUIT BOARD PATTERN ===================== */
.login-circuit-bg {
    position: fixed;
    inset: 0;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* ===================== FLOATING PARTICLES ===================== */
.login-particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.login-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--login-primary-light);
    border-radius: 50%;
    animation: particleFloat 12s infinite linear;
    opacity: 0;
    box-shadow: 0 0 10px var(--login-primary-light);
}

/* Theme-specific particle colors */
body.login.theme-red .login-particles .particle {
    background: #c62828;
    box-shadow: 0 0 10px #c62828;
}

body.login.theme-yellow .login-particles .particle {
    background: #f9a825;
    box-shadow: 0 0 10px #f9a825;
}

body.login.theme-blue .login-particles .particle {
    background: #1565c0;
    box-shadow: 0 0 10px #1565c0;
}

body.login.theme-green .login-particles .particle {
    background: #2e7d32;
    box-shadow: 0 0 10px #2e7d32;
}

.login-particles .particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.login-particles .particle:nth-child(2) { left: 20%; animation-delay: 1.5s; }
.login-particles .particle:nth-child(3) { left: 30%; animation-delay: 3s; }
.login-particles .particle:nth-child(4) { left: 40%; animation-delay: 0.8s; }
.login-particles .particle:nth-child(5) { left: 50%; animation-delay: 2.2s; }
.login-particles .particle:nth-child(6) { left: 60%; animation-delay: 4s; }
.login-particles .particle:nth-child(7) { left: 70%; animation-delay: 1.8s; }
.login-particles .particle:nth-child(8) { left: 80%; animation-delay: 3.5s; }
.login-particles .particle:nth-child(9) { left: 90%; animation-delay: 2.8s; }
.login-particles .particle:nth-child(10) { left: 5%; animation-delay: 4.5s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.9; transform: translateY(80vh) scale(1); }
    90% { opacity: 0.9; }
    100% { transform: translateY(-20vh) scale(0.5); opacity: 0; }
}

/* ===================== GLOW LINES ===================== */
.login-glow-lines {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.login-glow-lines .glow-line {
    position: absolute;
    width: 2px;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--login-primary), transparent);
    animation: glowMove 5s ease-in-out infinite;
    opacity: 0.4;
}

/* Theme-specific glow colors */
body.login.theme-red .login-glow-lines .glow-line {
    background: linear-gradient(180deg, transparent, #c62828, transparent);
}

body.login.theme-yellow .login-glow-lines .glow-line {
    background: linear-gradient(180deg, transparent, #f9a825, transparent);
}

body.login.theme-blue .login-glow-lines .glow-line {
    background: linear-gradient(180deg, transparent, #1565c0, transparent);
}

body.login.theme-green .login-glow-lines .glow-line {
    background: linear-gradient(180deg, transparent, #2e7d32, transparent);
}

.login-glow-lines .glow-line:nth-child(1) { left: 10%; animation-delay: 0s; }
.login-glow-lines .glow-line:nth-child(2) { left: 25%; animation-delay: 1s; }
.login-glow-lines .glow-line:nth-child(3) { left: 45%; animation-delay: 2s; }
.login-glow-lines .glow-line:nth-child(4) { left: 65%; animation-delay: 0.5s; }
.login-glow-lines .glow-line:nth-child(5) { left: 80%; animation-delay: 1.5s; }
.login-glow-lines .glow-line:nth-child(6) { left: 95%; animation-delay: 2.5s; }

@keyframes glowMove {
    0%, 100% { transform: translateY(-100%); opacity: 0; }
    50% { transform: translateY(100vh); opacity: 0.6; }
}

/* ===================== LOGIN CONTAINER ===================== */
#login {
    width: 100%;
    max-width: 420px;
    padding: 0;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Main Card */
.login-card {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* ===================== ROBOT SECTION ===================== */
.robot-section {
    background: linear-gradient(180deg, rgba(12, 10, 29, 0.98) 0%, rgba(12, 10, 29, 0.85) 100%);
    padding: 25px 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Robot glow effect */
.robot-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.25) 0%, transparent 70%);
    animation: robotGlow 3s ease-in-out infinite alternate;
}

body.login.theme-yellow .robot-section::before {
    background: radial-gradient(circle, rgba(245, 127, 23, 0.25) 0%, transparent 70%);
}

body.login.theme-blue .robot-section::before {
    background: radial-gradient(circle, rgba(13, 71, 161, 0.25) 0%, transparent 70%);
}

body.login.theme-green .robot-section::before {
    background: radial-gradient(circle, rgba(27, 94, 32, 0.25) 0%, transparent 70%);
}

@keyframes robotGlow {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Robot container */
.robot-container {
    width: 140px;
    height: 140px;
    position: relative;
    z-index: 1;
}

.robot-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(139, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

body.login.theme-yellow .robot-svg {
    filter: drop-shadow(0 10px 30px rgba(245, 127, 23, 0.35));
}

body.login.theme-blue .robot-svg {
    filter: drop-shadow(0 10px 30px rgba(13, 71, 161, 0.35));
}

body.login.theme-green .robot-svg {
    filter: drop-shadow(0 10px 30px rgba(27, 94, 32, 0.35));
}

.robot-svg:hover {
    transform: scale(1.05);
}

/* Login Title */
.login-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ===================== LOGO ===================== */
#login h1 {
    margin: 0;
    padding: 0;
    display: none;
}

#login h1 a {
    display: block !important;
    width: 150px !important;
    height: 60px !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    text-indent: -9999px;
    margin: 0 auto !important;
}

/* ===================== FORM SECTION ===================== */
.login-form-section {
    padding: 25px 35px 28px;
    background: var(--bg-card);
}

/* Form */
.login form {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Labels */
.login form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.login form .forgetmenot {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Input wrapper */
.login-input-wrapper {
    position: relative;
    margin-bottom: 18px;
}

.login-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.login-input-wrapper input:focus + i,
.login-input-wrapper input:focus ~ i {
    color: var(--login-primary);
}

/* Input fields */
.login form .input,
.login form input[type="text"],
.login form input[type="password"],
.login form input[type="email"] {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.login form .input:focus,
.login form input:focus {
    border-color: var(--login-primary);
    background: #fff;
}

/* Theme-specific focus shadow */
body.login.theme-red .login form .input:focus,
body.login.theme-red .login form input:focus {
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.12);
}

body.login.theme-yellow .login form .input:focus,
body.login.theme-yellow .login form input:focus {
    box-shadow: 0 0 0 4px rgba(245, 127, 23, 0.12);
}

body.login.theme-blue .login form .input:focus,
body.login.theme-blue .login form input:focus {
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.12);
}

body.login.theme-green .login form .input:focus,
body.login.theme-green .login form input:focus {
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.12);
}

.login form .input::placeholder {
    color: #9ca3af;
}

/* Remember me */
.login form .forgetmenot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    cursor: pointer;
}

.login form .forgetmenot input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    accent-color: var(--login-primary);
}

/* ===================== SUBMIT BUTTON ===================== */
#wp-submit {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #8B0000 0%, #c62828 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(139, 0, 0, 0.35) !important;
}

/* Theme-specific button colors */
body.login.theme-red #wp-submit {
    background: linear-gradient(135deg, #8B0000 0%, #c62828 100%) !important;
    box-shadow: 0 4px 18px rgba(139, 0, 0, 0.35) !important;
}

body.login.theme-yellow #wp-submit {
    background: linear-gradient(135deg, #f57f17 0%, #f9a825 100%) !important;
    box-shadow: 0 4px 18px rgba(245, 127, 23, 0.35) !important;
}

body.login.theme-blue #wp-submit {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
    box-shadow: 0 4px 18px rgba(13, 71, 161, 0.35) !important;
}

body.login.theme-green #wp-submit {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%) !important;
    box-shadow: 0 4px 18px rgba(27, 94, 32, 0.35) !important;
}

#wp-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

#wp-submit:hover::before {
    left: 100%;
}

#wp-submit:hover {
    transform: translateY(-2px) !important;
}

body.login.theme-red #wp-submit:hover {
    background: linear-gradient(135deg, #6d0000 0%, #8B0000 100%) !important;
    box-shadow: 0 8px 28px rgba(139, 0, 0, 0.45) !important;
}

body.login.theme-yellow #wp-submit:hover {
    background: linear-gradient(135deg, #e65100 0%, #f57f17 100%) !important;
    box-shadow: 0 8px 28px rgba(245, 127, 23, 0.45) !important;
}

body.login.theme-blue #wp-submit:hover {
    background: linear-gradient(135deg, #002171 0%, #0d47a1 100%) !important;
    box-shadow: 0 8px 28px rgba(13, 71, 161, 0.45) !important;
}

body.login.theme-green #wp-submit:hover {
    background: linear-gradient(135deg, #0a3d0a 0%, #1b5e20 100%) !important;
    box-shadow: 0 8px 28px rgba(27, 94, 32, 0.45) !important;
}

#wp-submit:active {
    transform: translateY(0) !important;
}

/* ===================== MESSAGES ===================== */
.login .message,
.login .success {
    border: none;
    border-left: 4px solid var(--success);
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    padding: 14px 16px;
    margin: 0 35px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.login #login_error {
    border: none;
    border-left: 4px solid var(--error);
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    padding: 14px 16px;
    margin: 0 35px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* ===================== RESET PASSWORD SUCCESS ===================== */
.resetpass-success {
    text-align: center;
    padding: 20px 0 10px;
}

.resetpass-success .success-icon {
    font-size: 3rem;
    color: var(--success, #10b981);
    margin-bottom: 12px;
}

.resetpass-success .success-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.reset-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 32px;
    background: var(--login-gradient, linear-gradient(135deg, #8B0000 0%, #c62828 100%));
    color: #fff !important;
    border-radius: 14px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.reset-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.reset-login-btn:hover::before {
    left: 100%;
}

.reset-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    color: #fff !important;
}

/* ===================== LINKS SECTION ===================== */
.login-links-section {
    padding: 15px 35px 18px;
    border-top: 1px solid var(--border-color);
}

/* Theme-specific links background */
body.login.theme-red .login-links-section {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 0, 0, 0.04) 100%);
}

body.login.theme-yellow .login-links-section {
    background: linear-gradient(180deg, transparent 0%, rgba(245, 127, 23, 0.04) 100%);
}

body.login.theme-blue .login-links-section {
    background: linear-gradient(180deg, transparent 0%, rgba(13, 71, 161, 0.04) 100%);
}

body.login.theme-green .login-links-section {
    background: linear-gradient(180deg, transparent 0%, rgba(27, 94, 32, 0.04) 100%);
}

.login-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.login-link-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.login-link-item:hover {
    color: var(--login-primary);
}

.login-link-item i {
    font-size: 0.8rem;
    color: var(--login-primary);
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.login-link-item:hover i {
    opacity: 1;
}

/* Divider */
.login-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

/* Theme Info */
.login-theme-info {
    text-align: center;
    padding-top: 8px;
}

.login-theme-info p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 3px 0;
    display: inline;
}

.login-theme-info p:not(:last-of-type)::after {
    content: " • ";
    color: var(--border-color);
}

.login-theme-info a {
    color: var(--login-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.login-theme-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Digital Badge */
.digital-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--login-gradient);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.digital-badge i {
    font-size: 0.75rem;
}

/* Theme-specific digital badge colors */
body.login.theme-red .digital-badge {
    background: linear-gradient(135deg, #8B0000 0%, #c62828 100%);
}
body.login.theme-yellow .digital-badge {
    background: linear-gradient(135deg, #f57f17 0%, #f9a825 100%);
}
body.login.theme-blue .digital-badge {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}
body.login.theme-green .digital-badge {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

/* Theme-specific link colors */
body.login.theme-red .login-link-item i,
body.login.theme-red .login-link-item:hover,
body.login.theme-red .login-theme-info a {
    color: #c62828;
}
body.login.theme-yellow .login-link-item i,
body.login.theme-yellow .login-link-item:hover,
body.login.theme-yellow .login-theme-info a {
    color: #f9a825;
}
body.login.theme-blue .login-link-item i,
body.login.theme-blue .login-link-item:hover,
body.login.theme-blue .login-theme-info a {
    color: #1565c0;
}
body.login.theme-green .login-link-item i,
body.login.theme-green .login-link-item:hover,
body.login.theme-green .login-theme-info a {
    color: #2e7d32;
}

/* ===================== HIDE DEFAULT ELEMENTS ===================== */
#nav,
#backtoblog,
.language-switcher {
    display: none !important;
}

/* ===================== RESPONSIVE ===================== */
@media screen and (max-width: 480px) {
    body.login {
        padding: 20px 15px;
    }

    #login {
        max-width: 100%;
    }

    .robot-section {
        padding: 20px 25px 15px;
    }

    .robot-container {
        width: 120px;
        height: 120px;
    }

    .login-form-section {
        padding: 20px 25px 25px;
    }

    .login-links-section {
        padding: 15px 25px 18px;
    }

    #login h1 a {
        width: 120px !important;
        height: 48px !important;
    }

    .login-title {
        font-size: 1.15rem;
    }

    .login form .input,
    .login form input {
        height: 48px;
        font-size: 16px;
    }

    #wp-submit {
        height: 50px;
    }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Typing cursor effect for title */
.typing-cursor {
    font-weight: 400;
    color: var(--login-primary-light);
    margin-left: 2px;
    opacity: 1;
}

.typing-cursor.blink {
    animation: blink 0.8s infinite;
}

/* Theme-specific cursor color */
body.login.theme-red .typing-cursor { color: #c62828; }
body.login.theme-yellow .typing-cursor { color: #f9a825; }
body.login.theme-blue .typing-cursor { color: #1565c0; }
body.login.theme-green .typing-cursor { color: #2e7d32; }

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===================== TECH DECORATION ELEMENTS ===================== */
/* Data stream effect */
.login-data-stream {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.login-data-stream .stream {
    position: absolute;
    width: 1px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 10px,
        var(--login-primary-light) 10px,
        var(--login-primary-light) 12px
    );
    opacity: 0.15;
    animation: dataStream 8s linear infinite;
}

/* Theme-specific data stream colors */
body.login.theme-red .login-data-stream .stream {
    background: repeating-linear-gradient(to bottom, transparent 0px, transparent 10px, #c62828 10px, #c62828 12px);
}
body.login.theme-yellow .login-data-stream .stream {
    background: repeating-linear-gradient(to bottom, transparent 0px, transparent 10px, #f9a825 10px, #f9a825 12px);
}
body.login.theme-blue .login-data-stream .stream {
    background: repeating-linear-gradient(to bottom, transparent 0px, transparent 10px, #1565c0 10px, #1565c0 12px);
}
body.login.theme-green .login-data-stream .stream {
    background: repeating-linear-gradient(to bottom, transparent 0px, transparent 10px, #2e7d32 10px, #2e7d32 12px);
}

.login-data-stream .stream:nth-child(1) { left: 5%; animation-delay: 0s; }
.login-data-stream .stream:nth-child(2) { left: 15%; animation-delay: 1s; }
.login-data-stream .stream:nth-child(3) { left: 25%; animation-delay: 2s; }
.login-data-stream .stream:nth-child(4) { left: 35%; animation-delay: 0.5s; }
.login-data-stream .stream:nth-child(5) { left: 45%; animation-delay: 1.5s; }
.login-data-stream .stream:nth-child(6) { left: 55%; animation-delay: 2.5s; }
.login-data-stream .stream:nth-child(7) { left: 65%; animation-delay: 0.8s; }
.login-data-stream .stream:nth-child(8) { left: 75%; animation-delay: 1.8s; }
.login-data-stream .stream:nth-child(9) { left: 85%; animation-delay: 2.8s; }
.login-data-stream .stream:nth-child(10) { left: 95%; animation-delay: 3.5s; }

@keyframes dataStream {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Hexagon grid overlay */
.login-hex-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}


