/**
 * WP My Login Gate - Login Page Styles
 * 
 * Custom styles for the WordPress login page
 * Colors are dynamically injected via inline styles
 */

/* Body and Background */
body.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Container */
#login {
    width: 400px;
    padding: 20px 0 0;
    margin: auto;
}

/* Form Styling */
#loginform,
#lostpasswordform,
#registerform {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    margin-top: 20px;
    border: none;
}

/* Logo */
#login h1 a,
.login h1 a {
    background-size: contain;
    width: 84px;
    height: 84px;
    margin-bottom: 20px;
    border-radius: 12px;
}

#password-protected-logo a:focus{ box-shadow: none;}

/* Input Fields */
.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    background: #fff;
    outline: none;
}

.notice.notice-info.message,
#login_error{ 
    color: #acacac;
    backdrop-filter: blur(10px);
}

.login #nav{
    margin-top: -48px;
    text-align: center;
}
.wp-login-lost-password,
.wp-login-log-in{ color: #353535 !important;}

/* Primary Button */
.wp-core-ui .button-primary {
    border: none;
    border-radius: 8px;
    padding: 10px 24px !important;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
    min-height: 40px;
    margin-top: 10px;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus { transform: translateY(-2px);}

/* Links */
#backtoblog{
    text-align: center;
    padding-top: 16px !important;
}

#backtoblog a{
    width: 100%;
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 12px !important;
    background: #0000001f;
    border-radius: 33px;
    transition: all 0.3s ease;
}

#backtoblog a:hover{  background: #00000052;}

.login #backtoblog a,
.login #nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.login #backtoblog a:hover,
.login #nav a:hover { color: rgba(255, 255, 255, 1);}


/* Labels */
.login label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Messages and Errors */
.login .message,
.login .success { border-radius: 4px;}

#login_error {
    border-left: 4px solid #dc3232;
    background: rgba(220, 50, 50, 0.06);
    border-radius: 4px;
}

/* Remember Me */
.login form .forgetmenot { margin-bottom: 15px;}

/* Secondary Button */
.login .button-secondary {
    border-radius: 8px;
    border-color: #ddd;
    transition: all 0.3s ease;
}

/* Custom Powered Footer */
.clc-powered-footer {
    position: absolute;
    bottom: 10px;
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.clc-powered-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.clc-powered-footer a:hover { color: rgba(255, 255, 255, 0.6);}

/* Responsive Design */
@media screen and (max-width: 480px) {
    #login {
        width: 90%;
        padding: 16px 0 0;
    }
    
    #loginform,
    #lostpasswordform,
    #registerform { padding: 30px 20px;}
}

/* Loading State */
.login form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility Improvements */
.login input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Privacy Link */
.login .privacy-policy-page-link {
    margin-top: 10px;
    text-align: center;
}

.login .privacy-policy-page-link a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.login .privacy-policy-page-link a:hover { color: rgba(255, 255, 255, 1);}
