/* MultiPub Clean Admin - Premium Animated Login */
@charset "UTF-8";

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -80px) scale(1.15); }
    66% { transform: translate(-40px, 50px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-70px, 60px) scale(1.2); }
    66% { transform: translate(50px, -50px) scale(0.85); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(0.9); }
    50% { transform: translate(40px, 60px) scale(1.25); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; filter: blur(40px); }
    50% { opacity: 0.85; filter: blur(55px); }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Base HTML and Body Centering */
html {
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.login {
    height: 100% !important;
    min-height: 100vh !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #070913 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #e2e8f0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Animated Ambient Glow Orbs */
.multipub-login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.multipub-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.6;
    mix-blend-mode: screen;
}

.multipub-orb-1 {
    width: 480px;
    height: 480px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
    animation: orbFloat1 18s ease-in-out infinite, pulseGlow 8s ease-in-out infinite;
}

.multipub-orb-2 {
    width: 520px;
    height: 520px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
    animation: orbFloat2 22s ease-in-out infinite, pulseGlow 10s ease-in-out infinite;
}

.multipub-orb-3 {
    width: 420px;
    height: 420px;
    top: 40%;
    right: 30%;
    background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
    animation: orbFloat3 26s ease-in-out infinite, pulseGlow 12s ease-in-out infinite;
}

/* Particles Canvas */
#multipub-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Login Container - Strictly Centered */
#login {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 430px !important;
    padding: 24px 20px !important;
    margin: auto !important;
    box-sizing: border-box !important;
    animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Header / Logo */
#login h1 {
    margin-bottom: 22px !important;
    text-align: center;
}

#login h1 a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    background-image: none !important;
    text-indent: 0 !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 auto !important;
}

.multipub-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    margin-bottom: 4px;
}

.multipub-app-logo {
    width: 155px;
    height: auto;
    max-height: 155px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(99, 102, 241, 0.4)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

#login h1 a:hover .multipub-app-logo {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 16px 32px rgba(236, 72, 153, 0.55)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
}

/* The Login Form Glassmorphic Card */
#loginform {
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 34px 30px !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                0 0 40px -10px rgba(99, 102, 241, 0.2) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#loginform:hover {
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 35px 70px -12px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset,
                0 0 50px -5px rgba(168, 85, 247, 0.25) !important;
}

/* Form Labels and Inputs */
#loginform label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 8px !important;
    display: block;
}

#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(2, 6, 23, 0.6) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    padding: 13px 16px !important;
    line-height: 1.4 !important;
    margin-top: 6px !important;
    margin-bottom: 18px !important;
    outline: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) inset !important;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), 0 0 18px rgba(99, 102, 241, 0.3) !important;
}

/* Password Visibility Toggle */
.wp-pwd button.wp-hide-pw {
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
}
.wp-pwd button.wp-hide-pw:hover {
    color: #fff !important;
}

/* Remember Me Checkbox */
.login .forgetmenot {
    float: none !important;
    margin-bottom: 22px !important;
    margin-top: -4px !important;
}

.login .forgetmenot label {
    display: inline-flex !important;
    align-items: center !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    cursor: pointer;
}

.login .forgetmenot input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    background: rgba(2, 6, 23, 0.7) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 5px !important;
    margin-right: 10px !important;
    margin-top: 0 !important;
    outline: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.login .forgetmenot input[type="checkbox"]:checked {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5) !important;
}

.login .forgetmenot input[type="checkbox"]:checked::after {
    content: "✓" !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* Submit Button */
.login .submit {
    float: none !important;
    clear: both !important;
    margin-top: 8px !important;
}

#wp-submit {
    width: 100% !important;
    padding: 13px 24px !important;
    height: auto !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%) !important;
    background-size: 200% auto !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 10px 25px -4px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#wp-submit:hover {
    background-position: right center !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px -4px rgba(139, 92, 246, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
}

#wp-submit:active {
    transform: translateY(0) !important;
    box-shadow: 0 6px 15px -4px rgba(99, 102, 241, 0.5) !important;
}

/* Bottom Nav Links */
#nav, #backtoblog {
    text-align: center !important;
    margin: 16px 0 0 0 !important;
    padding: 0 !important;
}

#nav a, #backtoblog a {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

#nav a:hover, #backtoblog a:hover {
    color: #c7d2fe !important;
    text-shadow: 0 0 8px rgba(199, 210, 254, 0.4) !important;
}

/* Error and Info Messages */
#login_error,
.login .message,
.login .notice {
    background: rgba(30, 41, 59, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    margin-bottom: 22px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

#login_error {
    border-left: none !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    background: rgba(69, 10, 10, 0.7) !important;
    color: #fca5a5 !important;
    animation: shakeError 0.5s ease-in-out !important;
}

#login_error a {
    color: #f87171 !important;
    font-weight: 600 !important;
}

.login .message {
    border-left: none !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    background: rgba(30, 27, 75, 0.7) !important;
    color: #c7d2fe !important;
}

/* Language Switcher */
.language-switcher {
    margin-top: 20px !important;
    text-align: center !important;
}
.language-switcher select {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #94a3b8 !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* Mobile UX Optimizations (Smartphones) */
@media (max-width: 480px) {
    body.login {
        padding: 12px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #login {
        padding: 10px !important;
        max-width: 100% !important;
    }

    #login h1 {
        margin-bottom: 14px !important;
    }

    .multipub-app-logo {
        width: 130px !important;
        max-height: 130px !important;
    }

    #loginform {
        padding: 24px 18px !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7) !important;
    }

    #loginform label {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    #loginform input[type="text"],
    #loginform input[type="password"] {
        font-size: 16px !important; /* Prevents iOS auto-zoom on tap */
        padding: 12px 14px !important;
        margin-bottom: 14px !important;
    }

    .login .forgetmenot {
        margin-bottom: 18px !important;
    }

    #wp-submit {
        padding: 14px 20px !important;
        font-size: 16px !important;
        min-height: 48px !important;
        border-radius: 12px !important;
    }

    /* Ambient Orbs performance on mobile phones */
    .multipub-orb {
        filter: blur(40px) !important;
        opacity: 0.45 !important;
    }
    .multipub-orb-1 { width: 300px; height: 300px; }
    .multipub-orb-2 { width: 320px; height: 320px; }
    .multipub-orb-3 { display: none; }
}
