body.login {
    background: #020b14 !important;
    color: #f7f7f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

body.login::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(13, 71, 161, 0.15), transparent),
        radial-gradient(ellipse 500px 500px at 80% 70%, rgba(0, 150, 199, 0.1), transparent),
        radial-gradient(ellipse 300px 300px at 50% 50%, rgba(77, 195, 255, 0.05), transparent);
    animation: bgPulse 8s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

body.login::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(77, 195, 255, 0.3), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 10%, rgba(77, 195, 255, 0.25), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(77, 195, 255, 0.2), transparent),
        radial-gradient(1.5px 1.5px at 15% 85%, rgba(77, 195, 255, 0.35), transparent),
        radial-gradient(1px 1px at 45% 45%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 65% 75%, rgba(77, 195, 255, 0.2), transparent),
        radial-gradient(1.5px 1.5px at 85% 15%, rgba(77, 195, 255, 0.3), transparent),
        radial-gradient(1px 1px at 25% 35%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 55% 90%, rgba(77, 195, 255, 0.2), transparent),
        radial-gradient(1.5px 1.5px at 75% 55%, rgba(77, 195, 255, 0.25), transparent),
        radial-gradient(1px 1px at 5% 50%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 40% 15%, rgba(77, 195, 255, 0.15), transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(255, 255, 255, 0.1), transparent);
    animation: starsTwinkle 4s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes bgPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

@keyframes starsTwinkle {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#login h1 {
    display: none;
}


#login {
    position: relative;
    z-index: 1;
    animation: formFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes formFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.login form {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(77, 195, 255, 0.08);
    border-radius: 20px;
    padding: 40px 32px 50px;
    backdrop-filter: blur(40px) saturate(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(1.2);
    box-shadow:
        0 0 0 1px rgba(77, 195, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: visible;
    z-index: 1;
}


.login form::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 21px;
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 0%,
        transparent 10%,
        rgba(77, 195, 255, 0.4) 20%,
        rgba(0, 230, 255, 0.6) 30%,
        rgba(77, 195, 255, 0.4) 40%,
        transparent 50%,
        transparent 60%,
        rgba(77, 195, 255, 0.3) 70%,
        rgba(0, 200, 255, 0.5) 80%,
        rgba(77, 195, 255, 0.3) 90%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderSpin 6s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.login form:hover::before {
    opacity: 1;
}

@keyframes borderSpin {
    to { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}


.login form::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: transparent;
    box-shadow:
        0 0 15px rgba(77, 195, 255, 0.0),
        0 0 30px rgba(77, 195, 255, 0.0),
        inset 0 0 15px rgba(77, 195, 255, 0.0);
    animation: edgeGlow 4s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes edgeGlow {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(77, 195, 255, 0.05),
            0 0 20px rgba(77, 195, 255, 0.02),
            inset 0 0 10px rgba(77, 195, 255, 0.02);
    }
    50% {
        box-shadow:
            0 0 20px rgba(77, 195, 255, 0.15),
            0 0 40px rgba(77, 195, 255, 0.05),
            inset 0 0 20px rgba(77, 195, 255, 0.05);
    }
}


.login form .frost-shimmer {
    display: none;
}


.login label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.login label:hover {
    color: rgba(77, 195, 255, 0.9);
}


.login input[type="text"],
.login input[type="password"] {
    background: rgba(0, 10, 25, 0.6);
    color: #e8f4ff;
    border: 1px solid rgba(77, 195, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.login input[type="text"]:hover,
.login input[type="password"]:hover {
    border-color: rgba(77, 195, 255, 0.25);
    background: rgba(0, 15, 35, 0.7);
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: rgba(77, 195, 255, 0.5);
    background: rgba(0, 15, 35, 0.8);
    box-shadow:
        0 0 0 3px rgba(77, 195, 255, 0.08),
        0 0 20px rgba(77, 195, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    outline: none;
}


.login .user-pass-wrap {
    position: relative;
}

.login .user-pass-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4dc3ff, #00e6ff, #4dc3ff, transparent);
    border-radius: 2px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.login .user-pass-wrap:focus-within::after {
    width: 80%;
}


.login .forgetmenot {
    margin-bottom: 16px;
}

.login .forgetmenot label {
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
}

.login input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(77, 195, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 10, 25, 0.5);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.login input[type="checkbox"]:checked {
    background: rgba(77, 195, 255, 0.2);
    border-color: rgba(77, 195, 255, 0.5);
    box-shadow: 0 0 10px rgba(77, 195, 255, 0.15);
}

.login input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #4dc3ff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


#wp-submit {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 150, 199, 0.3), rgba(77, 195, 255, 0.2)) !important;
    border: 1px solid rgba(77, 195, 255, 0.3) !important;
    color: #e8f4ff !important;
    text-shadow: none !important;
    box-shadow:
        0 0 20px rgba(77, 195, 255, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    height: 46px !important;
    padding: 0 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 10px !important;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


#wp-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(77, 195, 255, 0.1),
        rgba(255, 255, 255, 0.08),
        rgba(77, 195, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

#wp-submit:hover::before {
    left: 100%;
}

#wp-submit:hover {
    background: linear-gradient(135deg, rgba(0, 150, 199, 0.45), rgba(77, 195, 255, 0.35)) !important;
    border-color: rgba(77, 195, 255, 0.5) !important;
    box-shadow:
        0 0 30px rgba(77, 195, 255, 0.2),
        0 0 60px rgba(77, 195, 255, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

#wp-submit:active {
    transform: translateY(1px);
    box-shadow:
        0 0 15px rgba(77, 195, 255, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}


#nav,
#backtoblog {
    text-align: center;
    padding: 0;
    margin-top: 24px;
    animation: linkFadeIn 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

#backtoblog {
    animation-delay: 0.6s;
}

@keyframes linkFadeIn {
    to { opacity: 1; }
}

#nav a,
#backtoblog a {
    color: rgba(255, 255, 255, 0.4) !important;
    text-shadow: none;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 13px;
    position: relative;
    padding-bottom: 2px;
}

#nav a::after,
#backtoblog a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #4dc3ff, #00e6ff);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#nav a:hover,
#backtoblog a:hover {
    color: #4dc3ff !important;
}

#nav a:hover::after,
#backtoblog a:hover::after {
    width: 100%;
}


.message,
#login_error {
    background: rgba(0, 15, 35, 0.6) !important;
    color: #e8f4ff !important;
    border-left: 3px solid #4dc3ff !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    box-shadow:
        0 0 20px rgba(77, 195, 255, 0.08),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(77, 195, 255, 0.08) !important;
    border-right: 1px solid rgba(77, 195, 255, 0.08) !important;
    border-bottom: 1px solid rgba(77, 195, 255, 0.08) !important;
    font-size: 13px;
    animation: messageSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

#login_error {
    border-left-color: #ff6b6b !important;
    box-shadow:
        0 0 20px rgba(255, 107, 107, 0.08),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.message::after,
#login_error::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #4dc3ff, transparent);
    animation: edgePulse 2s ease-in-out infinite;
}

#login_error::after {
    background: linear-gradient(180deg, transparent, #ff6b6b, transparent);
}

@keyframes edgePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}


body.login .ice-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}



#login::before {
    content: '';
    position: fixed;
    width: 3px;
    height: 3px;
    background: rgba(77, 195, 255, 0.4);
    border-radius: 50%;
    box-shadow:
        120px 80px 0 0 rgba(77, 195, 255, 0.2),
        300px 200px 0 1px rgba(77, 195, 255, 0.15),
        500px 120px 0 0 rgba(77, 195, 255, 0.25),
        700px 300px 0 1px rgba(77, 195, 255, 0.1),
        200px 400px 0 0 rgba(77, 195, 255, 0.2),
        900px 150px 0 1px rgba(77, 195, 255, 0.15),
        100px 500px 0 0 rgba(77, 195, 255, 0.1),
        650px 450px 0 1px rgba(77, 195, 255, 0.2),
        400px 550px 0 0 rgba(77, 195, 255, 0.15),
        800px 500px 0 1px rgba(77, 195, 255, 0.1);
    animation: particleFloat 15s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}


.login form .corner-frost {
    display: none;
}

.login form > *:first-child {
    position: relative;
}

.login form > *:first-child::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    border-top: 1px solid rgba(77, 195, 255, 0.2);
    border-left: 1px solid rgba(77, 195, 255, 0.2);
    border-radius: 8px 0 0 0;
    animation: cornerGlow 3s ease-in-out infinite;
    pointer-events: none;
}

.login form > *:last-child::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-bottom: 1px solid rgba(77, 195, 255, 0.2);
    border-right: 1px solid rgba(77, 195, 255, 0.2);
    border-radius: 0 0 8px 0;
    animation: cornerGlow 3s ease-in-out infinite 1.5s;
    pointer-events: none;
}

@keyframes cornerGlow {
    0%, 100% {
        opacity: 0.3;
        border-color: rgba(77, 195, 255, 0.15);
    }
    50% {
        opacity: 1;
        border-color: rgba(77, 195, 255, 0.4);
        filter: drop-shadow(0 0 4px rgba(77, 195, 255, 0.3));
    }
}


.login input[type="text"]:focus,
.login input[type="password"]:focus {
    animation: inputFocusPulse 0.6s ease-out;
}

@keyframes inputFocusPulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(77, 195, 255, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow:
            0 0 0 3px rgba(77, 195, 255, 0.08),
            0 0 20px rgba(77, 195, 255, 0.1),
            0 2px 8px rgba(0, 0, 0, 0.3),
            inset 0 1px 2px rgba(0, 0, 0, 0.3),
            inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    }
}


#wp-submit:focus:not(:hover) {
    background: linear-gradient(135deg, rgba(0, 150, 199, 0.35), rgba(77, 195, 255, 0.25)) !important;
}


body.login::-webkit-scrollbar {
    width: 6px;
}

body.login::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

body.login::-webkit-scrollbar-thumb {
    background: rgba(77, 195, 255, 0.2);
    border-radius: 3px;
}

body.login::-webkit-scrollbar-thumb:hover {
    background: rgba(77, 195, 255, 0.4);
}


body.login ::selection {
    background: rgba(77, 195, 255, 0.3);
    color: #ffffff;
}


.login .wp-hide-pw {
    color: rgba(77, 195, 255, 0.5) !important;
    transition: color 0.3s ease;
}

.login .wp-hide-pw:hover {
    color: rgba(77, 195, 255, 0.9) !important;
}

.login .wp-hide-pw .dashicons {
    font-size: 20px;
}


.login .language-switcher {
    display: none !important;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(77, 195, 255, 0.06);
}

.login .language-switcher label {
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.login .language-switcher select {
    background: rgba(0, 10, 25, 0.6);
    color: #e8f4ff;
    border: 1px solid rgba(77, 195, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease;
}

.login .language-switcher select:focus {
    border-color: rgba(77, 195, 255, 0.4);
}


.login .two-factor-prompt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}


@media (max-width: 480px) {
    .login form {
        padding: 30px 20px 40px;
        border-radius: 16px;
    }

    .login form::before {
        border-radius: 17px;
    }

    #wp-submit {
        height: 44px !important;
        font-size: 13px !important;
    }
}

