/* 1. Ajustar el logotipo */
img[alt="logo"] {
    width: auto !important;
    height: auto !important;
    max-width: 180px !important;
    max-height: 150px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 10px 0 !important;
}

/* 2. Botón de login verde con texto "INICIAR SESIÓN" */
button[data-testid="login"] {
    background-color: #006B5B !important;
    border: none !important;
    color: transparent !important;
    position: relative !important;
}
button[data-testid="login"]::after {
    content: "INICIAR SESIÓN" !important;
    font-size: 14px !important;
    display: block !important;
    color: #ffffff !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    white-space: nowrap !important;
}
button[data-testid="login"]:hover {
    background-color: #005046 !important;
}

/* 3. Ocultar "Forget Password?" por su contenido de texto */
div:contains("Forget Password?") {
    display: none !important;
}

/* 4. Ocultar "Your browser is fully supported" por su contenido de texto */
div:contains("Your browser is fully supported") {
    display: none !important;
}

/* 5. Cambiar el texto del Copyright a español */
div[data-testid="default-banner"] {
    color: transparent !important;
    position: relative !important;
}
div[data-testid="default-banner"] * {
    color: transparent !important;
    font-size: 0 !important;
}
div[data-testid="default-banner"]::after {
    content: "Copyright © 2026 CNM-FCBCB, Todos los derechos reservados" !important;
    color: #666666 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    z-index: 1 !important;
}

/* ===== CENTRAR EL PANEL BLANCO DE LOGIN ===== */
body {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
}

/* Contenedor principal del login */
div[class*="Login"],
div[class*="login"],
div[class*="Auth"],
div[class*="auth"],
.MuiBox-root,
[class*="LoginPage"],
[class*="login-page"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* El card / panel blanco */
.MuiPaper-root,
[class*="Paper"],
[class*="Card"],
[class*="login-card"],
[class*="LoginCard"] {
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
}

/* ===== FONDO COMPLETO A TODA LA PANTALLA ===== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
}

body {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Contenedor principal de fondo */
body > div,
[class*="LoginPage"],
[class*="login-page"],
[class*="AuthLayout"],
[class*="auth-layout"],
[class*="Background"],
[class*="background"] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
}

/* Eliminar espacios blancos laterales */
body > div {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
