/**
 * Modern Login Page Styles
 * NeutralTruth.ai WordPress Theme
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Styles */
body.login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
body.login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 60s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Login Container */
#login {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 400px;
    position: relative;
    z-index: 1;
}

/* Logo */
#login h1 {
    text-align: center;
    margin-bottom: 30px;
}

#login h1 a {
    background-image: none !important;
    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 32px;
    font-weight: 700;
    color: #1a1d23;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

#login h1 a:hover {
    transform: scale(1.05);
    color: #667eea;
}

/* Add custom logo/icon */
#login h1 a::before {
    content: '🔍';
    display: block;
    font-size: 48px;
    margin-bottom: 10px;
}

/* Form Styles */
#loginform,
#lostpasswordform,
#registerform {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Form Labels */
#loginform label,
#lostpasswordform label,
#registerform label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1d23;
    margin-bottom: 8px;
    display: block;
}

/* Form Inputs */
#loginform input[type="text"],
#loginform input[type="password"],
#lostpasswordform input[type="text"],
#registerform input[type="text"],
#registerform input[type="email"],
#user_login,
#user_pass {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: none;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#lostpasswordform input[type="text"]:focus,
#registerform input[type="text"]:focus,
#registerform input[type="email"]:focus {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Submit Button */
#wp-submit,
.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 30px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    height: auto;
    line-height: 1;
    margin-top: 20px;
}

#wp-submit:hover,
.button-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

#wp-submit:active,
.button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Remember Me Checkbox */
.forgetmenot {
    margin-top: 15px;
    margin-bottom: 15px;
}

.forgetmenot label {
    font-size: 14px;
    color: #666;
}

#rememberme {
    border-radius: 4px;
    margin-right: 8px;
}

/* Links */
#login p#nav,
#login p#backtoblog {
    text-align: center;
    margin-top: 20px;
}

#login p#nav a,
#login p#backtoblog a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

#login p#nav a:hover,
#login p#backtoblog a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Messages */
#login .message,
#login .notice,
#login #login_error {
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

#login .message {
    border-left-color: #00a32a;
    color: #00a32a;
}

#login #login_error {
    border-left-color: #d63638;
    color: #d63638;
}

/* Privacy Policy */
.privacy-policy-page-link {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
}

.privacy-policy-page-link a {
    color: #999;
    text-decoration: none;
}

.privacy-policy-page-link a:hover {
    color: #667eea;
}

/* Language Selector */
.language-switcher {
    margin-top: 20px;
    text-align: center;
}

#language-switcher-locales {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
    width: 100%;
}

/* Loading State */
.interim-login .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Mobile Responsive */
@media screen and (max-width: 480px) {
    #login {
        width: calc(100% - 40px);
        margin: 20px;
        padding: 30px 20px;
    }
    
    #login h1 a {
        font-size: 24px;
    }
    
    #login h1 a::before {
        font-size: 36px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.login {
        background: linear-gradient(135deg, #1a1d23 0%, #2d3748 100%);
    }
    
    #login {
        background: rgba(45, 55, 72, 0.95);
    }
    
    #login h1 a {
        color: #e0e0e0;
    }
    
    #login h1 a:hover {
        color: #9f7aea;
    }
    
    #loginform label,
    #lostpasswordform label,
    #registerform label {
        color: #e0e0e0;
    }
    
    #loginform input[type="text"],
    #loginform input[type="password"],
    #lostpasswordform input[type="text"],
    #registerform input[type="text"],
    #registerform input[type="email"] {
        background: #2d3748;
        border-color: #4a5568;
        color: #e0e0e0;
    }
    
    #loginform input[type="text"]:focus,
    #loginform input[type="password"]:focus {
        background: #374151;
        border-color: #9f7aea;
    }
    
    #wp-submit,
    .button-primary {
        background: linear-gradient(135deg, #9f7aea 0%, #764ba2 100%);
    }
    
    #login p#nav a,
    #login p#backtoblog a {
        color: #9f7aea;
    }
    
    #login .message,
    #login .notice,
    #login #login_error {
        background: #2d3748;
        color: #e0e0e0;
    }
}

/* Additional Animations */
#login {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Floating Elements */
body.login::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}