/**
 * AMN Admin — Estilos de la página de login
 *
 * Tema oscuro con acentos burgundy.
 * Logo como texto estilizado (Playfair Display via Google Fonts).
 */

/* Playfair Display se carga via wp_enqueue_style en class-amn-login.php */

body.login {
    background-color: #0F0F11;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Logo como texto estilizado */

.login h1 a {
    background-image: none !important;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;
    color: #EDEDED;
    letter-spacing: 0.02em;
    text-indent: 0;
    width: auto;
    height: auto;
    text-align: center;
    outline: none;
    padding-bottom: 8px;
}

.login h1 a:hover,
.login h1 a:focus {
    color: #C19A6B;
}

/* Subtítulo decorativo */

.login h1::after {
    content: 'Soprano';
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #666;
    margin-top: 4px;
}

/* Formulario */

.login form,
#loginform {
    background: #1C1C1E;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 26px 24px;
}

.login form .input,
.login form input[type="text"],
.login form input[type="password"] {
    background: #0F0F11;
    border: 1px solid #333;
    border-radius: 8px;
    color: #EDEDED;
    font-size: 14px;
    padding: 8px 12px;
}

.login form .input:focus,
.login form input[type="text"]:focus,
.login form input[type="password"]:focus {
    border-color: #800020;
    box-shadow: 0 0 0 1px #800020;
    outline: none;
    background: #0F0F11;
    color: #EDEDED;
}

/* Labels */

.login label {
    color: #A1A1AA;
    font-size: 13px;
}

/* Botón de login */

.login .button-primary,
#wp-submit {
    background: #800020;
    border: none;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 30px;
    height: auto;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #fff;
}

.login .button-primary:hover,
.login .button-primary:focus,
#wp-submit:hover,
#wp-submit:focus {
    background: #600018;
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(128, 0, 32, 0.3);
}

/* Checkbox "Recuérdame" */

.login .forgetmenot label {
    color: #888;
}

.login input[type="checkbox"] {
    background: #0F0F11;
    border-color: #333;
}

.login input[type="checkbox"]:checked {
    background: #800020;
    border-color: #800020;
}

/* Enlaces inferiores */

.login #nav,
.login #backtoblog {
    text-align: center;
}

.login #nav a,
.login #backtoblog a {
    color: #A1A1AA;
    transition: color 0.15s ease;
}

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

/* Mensajes de error y avisos */

.login .message,
.login .success {
    background: #1C1C1E;
    border-left-color: #4682B4;
    color: #EDEDED;
}

.login #login_error {
    background: #1C1C1E;
    border-left-color: #800020;
    color: #EDEDED;
}

.login #login_error a {
    color: #C19A6B;
}

/* Ocultar el enlace "Volver a" si apunta al CMS */

.login #backtoblog {
    display: none;
}

/* Responsivo */

@media (max-width: 480px) {
    .login h1 a {
        font-size: 22px;
    }

    .login form,
    #loginform {
        border-radius: 12px;
        margin: 0 12px;
    }
}
