/*
 * Custom Login Page Styles v4 (Button-like Nav)
 * --------------------------------------------------
 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.login {
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#login {
    padding: 20px;
    width: 380px;
    animation: fadeIn 0.6s ease-out;
}

/* Logo/Site Title */
.login h1 {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.login h1 a {
    background-image: none !important;
    display: block;
    width: 100%;
    height: auto;
    text-indent: 0;
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    text-shadow: none;
}

/* Style the login form */
#loginform {
    margin-top: 0;
    padding: 40px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-radius: 16px;
}

.login form .input,
.login input[type="text"] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    box-shadow: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login form .input:focus,
.login input[type="text"]:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    outline: none;
}

.login label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: inline-block;
}

/* Style the submit button */
.wp-core-ui .button-primary {
    background: #007BFF !important;
    border-color: #007BFF !important;
    border-radius: 8px;
    width: 100%;
    padding: 15px;
    height: auto;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.wp-core-ui .button-primary:hover {
    background: #0069d9 !important;
    border-color: #0062cc !important;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-3px);
}

/* Style the links below the form as secondary buttons */
#nav {
    margin-top: 20px;
    text-align: center;
    padding: 0 !important;
}

#nav a {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

#nav a:hover {
    border-color: #007BFF;
    background-color: #f0f7ff;
    color: #007BFF;
}

/* Hide the "Back to..." link and the bullet separator */
#backtoblog, .login #nav .interim-login-sep {
    display: none;
}

/* Remember me checkbox */
.login .forgetmenot {
    margin-top: 10px;
}
.login .forgetmenot label {
    font-weight: 500;
}