/* Custom Login Page Styles for Neon Custom Plugin - V2 */

/* --- Keyframe Animations --- */
@keyframes bgPulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #00f2fe, 0 0 20px #00f2fe, 0 0 30px #4facfe;
    }

    to {
        text-shadow: 0 0 20px #4facfe, 0 0 30px #00f2fe, 0 0 40px #4facfe;
    }
}

/* Custom Login Page Styles for Neon Custom Plugin - V3 (Split Screen & 3D) */

/* --- Keyframe Animations --- */
@keyframes bgPulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
    }

    50% {
        text-shadow: 0 0 35px rgba(0, 242, 254, 0.8);
    }
}

body.login {
    /* PERFORMANCE: Using CSS Gradient instead of large Image */
    background: radial-gradient(circle at 70% 50%, #1a202c 0%, #050a14 60%, #000000 100%);
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    /* Align form to left */
    height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #e0e6ed;
    position: relative;
    overflow: hidden;
    padding-left: 10% !important;
    /* Space for form */
}

/* 3D Earth Container */
#earth-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    /* Take up right side */
    height: 100%;
    z-index: 1;
    /* Optional: Subtle background behind earth */
    background: radial-gradient(circle at 50% 50%, rgba(20, 30, 50, 0.4) 0%, transparent 70%);
}

/* Ensure Login Form is high z-index and positioned left */
#login {
    position: relative;
    z-index: 10;
    padding: 0;
    width: 420px;
    /* Slightly wider */
    margin: 0 !important;
    /* Override WP centering */
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    body.login {
        justify-content: center;
        padding-left: 0 !important;
        background: #050a14;
    }

    #earth-container {
        width: 100%;
        height: 60%;
        top: 0;
        right: 0;
        opacity: 0.3;
        /* Fade it out slightly on mobile so form is readable */
    }

    #login {
        width: 90%;
        max-width: 400px;
        margin-top: 15px !important;
    }
}


/* Logo Replacement - JS Content Method */
.login h1 {
    display: block;
    margin-bottom: 20px;
    /* Reduced margin */
    text-align: center;
}

.login h1 a {
    background-image: none !important;
    width: 100% !important;
    height: auto !important;
    text-indent: 0 !important;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    text-decoration: none !important;
}

/* Main Title Style */
.neon-main-title {
    display: block;
    font-size: 26px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Neon Text Effect */
    background: linear-gradient(to right, #ffffff 20%, #4facfe 40%, #00f2fe 60%, #ffffff 80%);
    background-size: 200% auto;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;

    animation: bgPulse 3s linear infinite;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

/* Subtitle Style */
.neon-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #a0aabf;
    /* Muted tech color */
    letter-spacing: 1px;
    margin-top: 5px;
    text-shadow: none;
    -webkit-text-fill-color: #a0aabf;
    /* Reset fill */
    opacity: 0.8;
}


/* Login Form Container - Glassmorphism */
.login form {
    background: rgba(13, 17, 23, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 30px !important;
    margin: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login form:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(79, 172, 254, 0.4) !important;
}

/* Labels */
.login label {
    color: #a0aabf !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

/* Inputs */
.login input[type="text"],
.login input[type="password"] {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 15px;
    margin-bottom: 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: #00f2fe !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3) !important;
    padding-left: 20px !important;
    /* Slight shift animation */
}

/* Checkbox */
.login .forgetmenot {
    margin-bottom: 20px !important;
    float: none !important;
    display: flex;
    align-items: center;
}

.login .forgetmenot input[type="checkbox"] {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Button */
.wp-core-ui .button-primary {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%) !important;
    border: none !important;
    color: #050a14 !important;
    /* Contrast text */
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    height: 50px !important;
    margin-top: 10px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4) !important;
    float: none !important;
    /* Fix WP float */
}

.wp-core-ui .button-primary:hover {
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%) !important;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6) !important;
}

/* Links */
.login #nav,
.login #backtoblog {
    margin: 20px 0 0 !important;
    padding: 0 !important;
    text-align: center;
}

.login #nav a,
.login #backtoblog a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #00f2fe !important;
    text-shadow: 0 0 5px rgba(0, 242, 254, 0.5);
}

/* Language Switcher - Moved to Bottom */
.login .language-switcher {
    margin-top: 30px;
    opacity: 0.7;
    width: 100%;
    text-align: center;
    position: relative;
    clear: both;
    display: flex;
    justify-content: center;
    z-index: 20;
}

/* Ensure Dropdown looks good */
.login .language-switcher form .dashicons {
    color: #4facfe;
}

.login .language-switcher #language-switcher-locales {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: #e0e6ed;
    border-radius: 4px;
}

/* 3D Form Floating Elements (Decorations) */
.login form::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4facfe, transparent, #00f2fe);
    z-index: -1;
    border-radius: 18px;
    opacity: 0.3;
    animation: bgPulse 5s linear infinite;
}