/**
 * Cosmic Night Login Theme
 *
 * @package    CLPD51
 * @subpackage CLPD51/public/css
 */
 body.login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #0f0f1f 0%, #202060 100%);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(157, 78, 221, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(77, 99, 225, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #0f0f1f 0%, #202060 100%);
    position: relative;
    overflow: hidden;
}

/* Star field background */
body.login:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 25px 25px, rgba(255, 255, 255, 0.8) 50%, transparent 100%),
        radial-gradient(1px 1px at 50px 100px, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 100px 50px, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 150px 150px, rgba(255, 255, 255, 0.8) 50%, transparent 100%),
        radial-gradient(1px 1px at 200px 75px, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 250px 250px, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 300px 100px, rgba(255, 255, 255, 0.8) 50%, transparent 100%),
        radial-gradient(1px 1px at 350px 350px, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 400px 150px, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    background-size: 400px 400px;
    animation: starsAnimation 150s linear infinite;
    pointer-events: none;
}

@keyframes starsAnimation {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 400px 400px;
    }
}

body.login #login {
    background-color: rgba(24, 24, 48, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(157, 78, 221, 0.1),
                0 0 20px rgba(157, 78, 221, 0.3);
    padding: 45px;
    width: 380px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.login #login:after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, transparent 0%, rgba(157, 78, 221, 0.2) 100%);
    border-radius: 20px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
}

body.login h1 a {
    margin: 0 auto 35px;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.5));
}

body.login h1 a:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(199, 125, 255, 0.7));
}

body.login form {
    margin-top: 25px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"] {
    background-color: rgba(15, 15, 31, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    padding: 16px;
    font-family: 'Roboto', sans-serif;
    color: #e0e0ff;
    transition: all 0.3s ease;
}

body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
    border-color: rgba(157, 78, 221, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 
                inset 0 2px 4px rgba(0, 0, 0, 0.1),
                0 0 0 3px rgba(157, 78, 221, 0.15);
    outline: none;
}

body.login label {
    color: #e0e0ff;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

body.login .button.wp-hide-pw {
    height: 56px;
    color: rgba(157, 78, 221, 0.8);
}

body.login .button-primary {
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    height: auto;
    padding: 16px !important;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(157, 78, 221, 0.2),
                0 0 20px rgba(157, 78, 221, 0.2);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

body.login .button-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 150%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

body.login .button-primary:hover {
    background: linear-gradient(135deg, #c77dff 0%, #9d4edd 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(199, 125, 255, 0.3),
                0 0 30px rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
}

body.login .button-primary:hover:before {
    left: 100%;
}

body.login .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(157, 78, 221, 0.2),
                0 0 15px rgba(157, 78, 221, 0.2);
}

body.login #nav, 
body.login #backtoblog {
    margin: 30px 0 0;
    padding: 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

body.login #nav a, 
body.login #backtoblog a {
    color: rgba(224, 224, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 0;
}

body.login #nav a:after, 
body.login #backtoblog a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: rgba(157, 78, 221, 0.7);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

body.login #nav a:hover, 
body.login #backtoblog a:hover {
    color: #c77dff;
}

body.login #nav a:hover:after, 
body.login #backtoblog a:hover:after {
    width: 100%;
}

body.login form .forgetmenot {
    margin-bottom: 20px;
}

body.login form .forgetmenot input[type="checkbox"] {
    border: 1px solid rgba(157, 78, 221, 0.4);
    background-color: rgba(15, 15, 31, 0.6);
}

body.login form .forgetmenot input[type="checkbox"]:checked:before {
    color: #9d4edd;
}

body.login form .forgetmenot label {
    font-size: 14px;
    opacity: 0.8;
}

body.login .message, 
body.login #login_error {
    background-color: rgba(24, 24, 48, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid #9d4edd;
    color: #e0e0ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* Decorative elements */
body.login #login:before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(rgba(157, 78, 221, 0.1), transparent 70%);
    top: -75px;
    right: -75px;
    z-index: -1;
    filter: blur(20px);
}

/* Animated nebula background */
@keyframes nebulaPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { opacity: 0.3; }
}

body.login:after {
    content: '';
    position: fixed;
    top: 30%;
    left: 60%;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse at center, 
                rgba(157, 78, 221, 0.1) 0%, 
                rgba(77, 99, 225, 0.05) 40%, 
                transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: nebulaPulse 10s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}