/* Login JSF con el mismo look del login React (Avalon): card centrado, branding
   TM Land en azul electrico, inputs redondeados y ola azul al fondo. */
:root {
    --tm-blue: #0080fc;        /* primary-500: botones, links, foco */
    --tm-blue-hover: #006dd6;  /* primary-600 */
    --tm-title: #2128bd;       /* azul_electrico: titulo TM Land */
    --tm-login-bg: #f4f9ff;
    --tm-label: #4c566a;
}

html, body {
    height: 100%;
    margin: 0;
}

.tm-login-body {
    min-height: 100vh;
    width: 100%;
    background: var(--tm-login-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tm-login-card {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 400px;
    padding: 0 1.5rem;
    margin-top: 4.5rem;
    text-align: center;
}

.tm-login-logo {
    width: 6rem;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.tm-login-company-logo {
    max-width: 12rem;
    max-height: 7rem;
    margin: 0 auto 1rem;
    display: block;
}

.tm-login-title {
    color: var(--tm-title);
    font-weight: 300;
    font-size: 2.25rem;
    margin: .5rem 0 0;
}

.tm-login-form {
    text-align: left;
    margin-top: 1.5rem;
}

.tm-login-form label {
    display: block;
    margin-bottom: .5rem;
    color: var(--tm-label);
    font-size: .95rem;
}

.tm-input-wrap {
    position: relative;
    display: block;
    margin-bottom: 1rem;
}

.tm-input-wrap .pi {
    position: absolute;
    right: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    z-index: 2;
}

/* inputs PrimeFaces redondeados y full width */
.tm-login-form .ui-inputfield,
.tm-login-form .ui-password,
.tm-login-form input.ui-inputtext {
    width: 100% !important;
    border-radius: 8px;
    padding: .65rem 2.4rem .65rem .9rem;
    border: 1px solid #d0d5e2;
    box-sizing: border-box;
}

.tm-login-form .ui-password {
    display: block;
}

.tm-login-actions {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tm-login-btn.ui-button {
    background: var(--tm-blue);
    border-color: var(--tm-blue);
    border-radius: 8px;
    padding: .6rem 1.4rem;
    font-weight: 500;
}

.tm-login-btn.ui-button:enabled:hover {
    background: var(--tm-blue-hover);
    border-color: var(--tm-blue-hover);
}

.tm-login-link {
    color: var(--tm-blue);
    cursor: pointer;
    text-decoration: none;
    font-size: .9rem;
}

.tm-login-link:hover {
    text-decoration: underline;
}

.tm-login-terms {
    font-size: .72rem;
    color: #6b7280;
    margin-top: 1.75rem;
    line-height: 1.45;
    text-align: center;
}

.tm-login-terms a {
    color: var(--tm-blue);
}

.tm-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

/* blockUI durante el login: overlay claro (no el gris oscuro por defecto) */
.ui-blockui.ui-widget-overlay,
.ui-blockui {
    background: rgba(244, 249, 255, 0.65) !important;
    opacity: 1 !important;
}
