/**
 * WordPress Login Page Styles
 * Custom styling for wp-login.php pages
 */

body.login {
    background: linear-gradient(135deg, #012130 0%, #01344d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#login {
    width: 450px;
    max-width: 90%;
    padding: 0;
}

/* Logo styling */
#login h1 {
    margin-bottom: 24px;
}

#login h1 a {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 300px;
    height: 80px;
    text-indent: -9999px;
    overflow: hidden;
    display: block;
    margin: 0 auto;
}

/* Add "Connexion" heading */
.login form:before {
    content: 'Connexion';
    display: block;
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 32px;
}

.login form {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.login label {
    color: white;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Username field wrapper */
.login .user-pass-wrap,
.login p:has(#user_login),
.login p:has(#user_pass) {
    margin-bottom: 20px;
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    padding: 16px 20px;
    font-size: 15px;
    box-shadow: none;
    transition: all 0.3s;
    width: 100%;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    outline: none;
    box-shadow: none;
    color: white;
}

.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder,
.login input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Submit button */
.login .submit {
    margin-top: 24px;
}

.wp-core-ui .button-primary {
    background-color: #e1512c;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 24px;
    text-shadow: none;
    box-shadow: none;
    transition: all 0.3s;
    width: 100%;
    height: auto;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    background-color: #d14628;
    box-shadow: 0 4px 12px rgba(225, 81, 44, 0.3);
    transform: translateY(-1px);
}

.wp-core-ui .button-primary:active {
    transform: translateY(0);
}

/* Lost password link */
.login #nav {
    text-align: right;
    padding: 0;
    margin: -12px 0 20px 0;
}

.login #nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.login #nav a:hover {
    color: white;
}

/* Back to blog link */
.login #backtoblog {
    display: none;
}

/* Messages */
.login .message,
.login .success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-left: 4px solid #22c55e;
    color: #86efac;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.login #login_error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

/* Checkbox styling */
.login .forgetmenot {
    display: none;
}

/* Hide language switcher */
.login .language-switcher {
    display: none;
}

/* Privacy policy link */
.login .privacy-policy-page-link {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    #login {
        width: 90%;
        padding: 0;
    }

    #login h1 a {
        width: 240px;
        height: 64px;
    }

    .login form:before {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .login input[type="text"],
    .login input[type="password"],
    .login input[type="email"] {
        padding: 14px 16px;
        font-size: 14px;
    }

    .wp-core-ui .button-primary {
        padding: 14px 20px;
        font-size: 15px;
    }
}
