/**
 * Login Intranet Gubernamental - Estilos institucionales
 * Diseño inspirado en intranet gov.co - Agencia de Renovación del Territorio
 */

/* Fuente institucional (similar a gov.co) */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

/* Variables de color institucional */
:root {
    /* Azul institucional similar al de la imagen */
    --login-gov-blue-dark: #0943b5;
    --login-gov-blue-medium: #02033b;
    --login-gov-yellow: #FFD700;
    --login-gov-yellow-bright: #F5C842;
    --login-gov-white: #ffffff;
    --login-gov-gray: #50575e;
    --login-gov-border: #c3c4c7;
}

/* Layout general */
body.login.login-intranet-gov-custom {
    background: #f0f0f1 !important;
    padding-top: 0 !important;
    font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.login.login-intranet-gov-custom #login {
    margin-top: 20px !important;
    padding-top: 0 !important;
}

/* Ocultar logo de WordPress y todo el encabezado h1 del login */
body.login-intranet-gov-custom .login h1,
body.login-intranet-gov-custom .login h1 a,
body.login-intranet-gov-custom .login h1.wp-login-logo {
    display: none !important;
}

/* Ocultar mensaje "Ahora estás conectado" (no ocultar #login_error de errores) */
body.login-intranet-gov-custom .login #login .message:not(#login_error) {
    display: none !important;
}

/* ===== HEADER AZUL SUPERIOR ===== */
.login-gov-header-top {
    background: var(--login-gov-blue-dark);
    color: var(--login-gov-white);
    padding: 12px 24px;
    width: 100%;
    box-sizing: border-box;
}

.login-gov-header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-gov-logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-gov-logo-link {
    color: var(--login-gov-white);
    text-decoration: none;
    font-size: 14px;
}

.login-gov-logo-link:hover {
    color: var(--login-gov-yellow);
}

/* ===== BARRA BLANCA DE NAVEGACIÓN ===== */
.login-gov-navbar {
    background: var(--login-gov-white);
    padding: 16px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--login-gov-border);
}

.login-gov-navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.login-gov-logos {
    display: flex;
    gap: 32px;
    align-items: center;
}

.login-gov-entity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-gov-entity-logo {
    background: var(--login-gov-blue-dark);
    color: var(--login-gov-white);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.login-gov-entity-name {
    font-size: 13px;
    color: var(--login-gov-gray);
}

.login-gov-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.login-gov-menu a {
    /* Estilo del menú como en la referencia del usuario */
    color: rgb(2, 3, 59);
    cursor: pointer;
    display: flex;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.login-gov-menu a:hover {
    color: var(--login-gov-blue-dark);
}

/* ===== BANNER AMARILLO ===== */
/* CONTENEDOR AMARILLO */
.login-gov-banner {
    background: #FFC107;
    padding: 40px 0; /* bordes arriba y abajo */
}

/* Contenedor interno */
.login-gov-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

/* Imagen completa sin recorte */
.login-gov-banner-img {
    width: auto;
    max-width: 100%;
    height: auto; /* 🔥 importante */
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}



/* TEXTO INTRANET ENCIMA */
.login-gov-intranet-title {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}



.login-gov-banner-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e0c040 0%, #d4af37 100%);
    position: relative;
}

/* Placeholder con patrón sutil */
/* Imagen personalizada del banner */
.login-gov-banner-img {
    width: 100%;
    height: auto;
    max-height: 300px; 
    object-fit: fill; 
}


.login-gov-banner-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.login-gov-intranet-title {
    position: absolute;
    bottom: 16px;
    left: 24px;
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: var(--login-gov-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* ===== CONTENEDOR DEL FORMULARIO ===== */
body.login-intranet-gov-custom #login {
    background: transparent !important;
}

body.login-intranet-gov-custom .login form {
    margin: 24px auto !important;
    padding: 32px !important;
    max-width: 400px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Campos de entrada con estilo institucional */
body.login-intranet-gov-custom .login label {
    display: none !important;
}

body.login-intranet-gov-custom .login .user-pass-wrap {
    margin-bottom: 16px;
}

body.login-intranet-gov-custom .login input[type="text"],
body.login-intranet-gov-custom .login input[type="password"] {
    padding: 12px 16px 12px 44px !important;
    font-size: 14px !important;
    height: 48px !important;
    min-height: 48px !important;
    border: 1px solid #1a1a1a !important;
    background: var(--login-gov-white) !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.login-intranet-gov-custom .login input[type="text"]::placeholder,
body.login-intranet-gov-custom .login input[type="password"]::placeholder {
    color: #1a1a1a !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
}

/* Iconos dentro de los inputs (persona y candado) como en la imagen */
body.login-intranet-gov-custom .login #user_login {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
}

body.login-intranet-gov-custom .login input[type="password"],
body.login-intranet-gov-custom .login .password-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
}

/* Espaciado entre usuario y contraseña */
body.login-intranet-gov-custom .login #loginform #user_login {
    margin-bottom: 12px !important;
}

body.login-intranet-gov-custom .login .user-pass-wrap {
    margin-top: 0 !important;
}

/* Botón LOGIN como en la imagen: blanco, borde negro, sombra sutil */
body.login-intranet-gov-custom .login .button-primary,
body.login-intranet-gov-custom .login .button.wp-core-ui {
    background: var(--login-gov-white) !important;
    border: 1px solid #1a1a1a !important;
    color: #1a1a1a !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 14px 24px !important;
    height: auto !important;
    width: 100% !important;
    margin: 16px 0 !important;
    font-size: 16px !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

body.login-intranet-gov-custom .login .button-primary:hover {
    background: #f6f7f7 !important;
    border-color: #8c8f94 !important;
}

/* Ocultar "Recordarme" para diseño más limpio (opcional) */
body.login-intranet-gov-custom .login .forgetmenot {
    display: none;
}

/* Enlace "¿Olvidó su contraseña?" centrado */
body.login-intranet-gov-custom .login #nav {
    text-align: center !important;
    margin-top: 16px !important;
}

body.login-intranet-gov-custom .login #nav a {
    color: var(--login-gov-gray);
    font-size: 13px;
}

body.login-intranet-gov-custom .login #nav a:hover {
    color: var(--login-gov-blue-dark);
}

/* Centrar el bloque del formulario */
body.login-intranet-gov-custom #login {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.login-intranet-gov-custom .login form {
    width: 100%;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .login-gov-navbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-gov-menu {
        flex-wrap: wrap;
    }

    .login-gov-banner {
        margin: 16px 16px 0;
    }

    .login-gov-intranet-title {
        font-size: 28px;
    }
}

#wp-submit {
    background: transparent !important;
    border: 1px solid #000; /* o el borde que quieras */
    color: #000 !important; /* texto negro o el color que prefieras */
    width: 100% !important;
    padding: 12px 0;
    font-weight: 700;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#wp-submit:hover {
    background-color: rgba(0, 0, 0, 0.1); /* ligero efecto hover */
}

