body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

a:link, a:visited, a:active {
    text-decoration: none;
}

#rightPanel {    
    position:absolute;
    right:10px;
    top:10px;    
    font-size: 12pt;
    color: black;
    width: 30%;
    max-width: 300px;
}

#frmLogin {
    width: 100%;
    text-align:center;
}

.loginField {
    width: 100%;
    box-sizing: border-box;
}

/* Contraseña y su ojo en una fila; min-width: 0 deja encoger el campo en
   pantallas estrechas (FITNOW-949). */
.passwordRow {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.passwordField {
    flex: 1;
    min-width: 0;
    margin-right: 5px;
    box-sizing: border-box;
}

/* Paneles de login, Recuperar contraseña y Registrarse: box-sizing y
   table-layout: fixed evitan que el contenido ensanche un panel más que los
   otros en pantallas estrechas o medianas (FITNOW-949, FITNOW-1120). */
.panel {
    background-color: #ffffff;
    border-color: #00df8d;
    padding: 10px;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    box-sizing: border-box;
    table-layout: fixed;
}

#leftPanel {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    text-align:center;
    vertical-align: middle;  
    z-index: -1
}

#lema {
    margin: auto;
    top: 40%;
    position: relative;
    font-size: 24pt;
    font-family:Arial, sans-serif;
    color:white;
}

#footPanel {
    background-color: white;
    position: absolute;
    right:10px;
    bottom:5px;
    font-size:10pt;
    font-family:Arial, sans-serif;
    color:white;
}

#frmAux {
    background-color:black;
    display:none;
}

#logo {
    width:100px;
    height:100px;
    cursor:pointer;
}

#linkBlog {
    color:white;
}

/*
 * Mismo formato que el boton "Crear cuenta gratis" de la landing de
 * fitnow.app (css/index.css, ".hero-actions a.button"): fondo blanco,
 * texto negro, borde verde de 2px y radio 100px (pastilla). Se aplica a
 * los tres controles de esta pagina que hacen de "boton" para el usuario
 * -- Entrar, Registrate y Olvidaste tu contraseña -- en vez de reusar
 * .fitButton (ese sigue con el estilo antiguo en el resto del sitio, no
 * tocado aqui) o dejarlos como texto plano con subrayado al hover.
 */
.ctaButton {
    /* btnLogin es un <input type="submit"> real (h:commandButton), no un
       <a> -- sin esto el navegador le pinta su apariencia nativa de boton
       de sistema por encima (fondo/borde propios), ignorando el resto. */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
    font: inherit;
    /*
     * El tema de PrimeFaces trae "body input:not([role=combobox],
     * [type=file],.ui-widget,.ui-inputfield) { padding; border;
     * border-radius; ... }" -- como h:commandButton (a diferencia de
     * p:commandButton) no añade las clases .ui-widget/.ui-inputfield, ese
     * <input type="submit"> cae en el selector, que tiene mas especificidad
     * (2 elementos + 1 clase del :not) que .ctaButton sola. !important en
     * cada propiedad que esa regla tambien fija es la unica forma de
     * ganarle sin depender del orden de carga de las hojas de estilo.
     */
    background-color: white !important;
    color: black !important;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    padding: 12px 28px !important;
    margin-top: 10px;
    border: 2px solid #00df8d !important;
    border-radius: 100px !important;
    outline: 0 none;
    cursor: pointer;
    width: 90%;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.ctaButton:hover {
    background-color: rgba(0, 223, 141, 0.15) !important;
    text-decoration: none;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: #323232;
    color: #fff;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

.cookie-buttons button {
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.btn-accept {
    background: #4caf50;
    color: white;
    border: none;
}

.btn-reject {
    background: #d32f2f;
    color: white;
    border: none;
}

@media only screen and (max-width: 400px) {
    body {
        background-size: auto;        
    }
    
    #logo {
        width: 25%;
        height: 25%;
        margin-bottom: 20px;
    }
    
    #rightPanel {
        border-radius: 10px;
        font-size: 10pt;
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        right: 0px;
        /* Margen a ambos lados, dentro del 100% (FITNOW-949). */
        padding: 0 10px;
        box-sizing: border-box;
    }

    /* Todos los paneles (login, Recuperar contraseña, Registrarse) con el
       ancho de la pantalla: su contenido no los ensancha (FITNOW-949). */
    #rightPanel .panel {
        box-sizing: border-box;
        table-layout: fixed;
    }

    #frmAux {
        background-color:black;
        display:none;
    }

    #footPanel {
        display:none;
    }
    
    #leftPanel {
        text-align:center;
        margin-top: 200px;
    }
    
    #lema {
        margin-left: auto;
        margin-right: auto;
        position: relative;        
        font-size: 8vw;

        color:white;
    }
}

