body.login {
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Nasconde il logo di WordPress e lo sostituisce (opzionale, se c'è un logo via filtro) */
#login h1 a {
    background-image: none !important;
    width: 100% !important;
    text-indent: 0 !important;
    color: #2c3338;
    font-size: 0 !important; /* Hide "Powered by WordPress" text */
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
    pointer-events: none; /* Disabilita il link a wordpress.org */
    height: auto;
    display: block;
}

#login h1 a::before {
    content: "AGM";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #25D366; /* var(--agm-primary) */
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto;
}

/* Form Container */
.login form {
    background: #ffffff;
    border: 1px solid #dcdcde;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 24px 24px 16px;
}

/* Inputs */
.login form .input, .login input[type="text"] {
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 6px 12px;
    background-color: #fff;
    color: #3c434a;
    width: 100%;
    margin-bottom: 16px;
}

.login form .input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Button */
.wp-core-ui .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    border-radius: 4px;
    font-size: 14px;
    line-height: 2;
    height: auto;
    padding: 6px 12px;
    width: 100%;
    margin-top: 10px;
    transition: background .2s ease;
}

.wp-core-ui .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Links (Lost Password, Back to Site) */
.login #backtoblog, .login #nav {
    text-align: center;
    padding: 0;
}

.login #backtoblog a, .login #nav a {
    color: #646970;
    text-decoration: none;
    font-size: 13px;
}

.login #backtoblog a:hover, .login #nav a:hover {
    color: #2271b1;
}

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

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