/* Importar fuente Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Estilos generales */
body.login {
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

/* Contenedor principal */
#login {
    max-width: 90%; /* Asegura que el login nunca supere el 90% del ancho de la pantalla */
    margin: 20px auto; /* Centra el login horizontalmente */
    padding: 20px; /* Agrega un relleno interno */
}

/* Logo */
.login h1 a {
    background-image: url('/wp-content/uploads/2024/12/verticalia-logo.png');
    background-size: contain;
    width: 259px !important;
    height: 104px !important;
    margin-bottom: 30px;
}

/* Formulario */
#loginform {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

/* Campos de entrada */
#loginform input[type="text"],
#loginform input[type="password"] {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    width: 100%;
    margin-top: 8px;
    transition: border-color 0.2s ease;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    border-color: #43397d;
    box-shadow: 0 0 0 2px rgba(67, 57, 125, 0.1);
    outline: none;
}

/* Etiquetas */
#loginform label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

/* Botón de submit */
#wp-submit {
    background-color: #43397d;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    margin-top: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#wp-submit:hover {
    background-color: #6265a4;
}

/* Enlaces */
.login #nav,
.login #backtoblog {
    text-align: center;
    padding: 0;
    margin: 16px 0 0;
}

.login #nav a,
.login #backtoblog a {
    color: #43397d;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Mensajes de error */
.login .message,
.login #login_error {
    background: white;
    border-left: 4px solid #ef4444;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.login .message {
    border-left-color: #10b981;
}

/* Checkbox "Recuérdame" */
.login .forgetmenot {
    margin-top: 16px;
}

.login .forgetmenot input[type="checkbox"] {
    border-color: #e5e7eb;
}

/* Responsive */
@media screen and (max-width: 768px) {
    #login {
        padding: 10px; /* Ajusta el padding en pantallas pequeñas */
        margin: 20px 5%; /* Añade un pequeño margen a los lados para evitar que toque los bordes */
    }
    
    .login h1 a {
        width: 259px !important;
        height: 104px !important;
    }
}

@media screen and (max-width: 480px) {
    #loginform {
        padding: 20px;
    }
    
    .login h1 a {
        width: 259px !important;
        height: 104px !important;
    }
}

/* Ocultar elementos innecesarios */
#language-switcher,
.privacy-policy-page-link,
#backtoblog {
    display: none !important;
}

/* Personalizar el botón de mostrar contraseña */
.wp-hide-pw {
    color: #6b7280 !important;
    opacity: 0.7;
    position: absolute !important;
    top: 45% !important;
    right: 0px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wp-hide-pw:hover {
    color: #43397d !important;
    opacity: 1;
}

.wp-hide-pw .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Asegurar que el contenedor del input tiene posición relativa */
.wp-pwd {
    position: relative;
    display: block;
}

/* Ajustar el padding del input de contraseña para el ojo */
#loginform input[type="password"] {
    padding-right: 40px;
}

/* Estilos para la página de recuperación de contraseña */
#lostpasswordform {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

#lostpasswordform label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

#lostpasswordform input[type="text"] {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    width: 100%;
    margin-top: 8px;
    transition: border-color 0.2s ease;
}

#lostpasswordform input[type="text"]:focus {
    border-color: #43397d;
    box-shadow: 0 0 0 2px rgba(67, 57, 125, 0.1);
    outline: none;
}

#lostpasswordform .submit input[type="submit"] {
    background-color: #43397d;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    margin-top: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#lostpasswordform .submit input[type="submit"]:hover {
    background-color: #6265a4;
}

/* Mensaje de instrucciones en la página de recuperación */
.message {
    background: white;
    border-left: 4px solid #43397d !important;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    color: #374151;
    font-size: 14px;
}
 