/* Login moderno — tarjeta centrada sobre gradiente */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #4FA9CC 0%, #2DB7A8 100%);
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 880px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    gap: 48px;
}

.login-card-brand {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #E5E7EB;
    padding-right: 48px;
    margin-right: 0;
}

.login-card-logo {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
}

.login-card-tagline {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #6B7280;
    font-weight: 300;
    line-height: 1.4;
}

.login-card-form-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-container {
    width: 100%;
}

.login-form-title {
    font-size: 22px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 24px;
    text-align: center;
}

/* Inputs con floating label */
.login-form-container .ui-float-label {
    display: block;
    margin-bottom: 20px;
}

.login-form-container .input-modern {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    font-size: 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.login-form-container .input-modern:focus {
    outline: none;
    border-color: #4FA9CC;
    box-shadow: 0 0 0 3px rgba(79, 169, 204, 0.15);
}

.login-form-container .ui-float-label label {
    color: #6B7280;
    font-size: 16px;
    left: 14px;
}

.login-form-container .ui-float-label input:focus ~ label,
.login-form-container .ui-float-label input.ui-state-filled ~ label {
    color: #4FA9CC;
    font-size: 12px;
}

/* Campo de contraseña con botón para mostrar/ocultar */
.login-form-container .ui-float-label.password-field {
    position: relative;
}

.login-form-container .ui-float-label.password-field .input-modern {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7280;
    padding: 4px 8px;
    font-size: 16px;
    line-height: 1;
    z-index: 2;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #4FA9CC;
    outline: none;
}

/* Botón primario con gradiente */
.login-button {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #4FA9CC 0%, #2DB7A8 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-top: 24px;
}

.login-button:hover,
.login-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 169, 204, 0.25);
    outline: none;
}

/* Link de olvido de contraseña */
.login-forgot {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #6B7280;
    font-size: 14px;
    text-decoration: none;
}

.login-forgot:hover {
    text-decoration: underline;
    color: #4FA9CC;
}

/* Bloque de contacto */
.login-contact {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
    text-align: center;
    font-size: 11px;
    color: #6B7280;
    line-height: 1.6;
}

.login-legal {
    display: block;
    margin-top: 12px;
    font-size: 10px;
    color: #9CA3AF;
    text-decoration: none;
}

.login-legal:hover {
    text-decoration: underline;
}

/* Cookies bar — overrides !important para ganar a estilos inline de p:dialog */
.cookies-bar,
.cookies-bar.ui-dialog {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #FFFFFF !important;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: #374151;
    z-index: 100;
    border: none !important;
    border-radius: 0 !important;
}

/* Growl (mensajes de error) */
.login-page .ui-growl {
    top: 24px;
    right: 24px;
}

/* Responsive — apila vertical en pantallas estrechas */
@media (max-width: 767px) {
    .login-card {
        flex-direction: column;
        gap: 24px;
        padding: 32px 24px;
        border-radius: 12px;
        max-width: 440px;
    }

    .login-card-brand {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
        padding-right: 0;
        padding-bottom: 24px;
    }

    .login-card-logo {
        max-width: 160px;
    }
}
