:host { display: flex; flex: 1; min-width: 0; /* The button borrows the home actions' palette: white with a thin gray border until the form is complete, then `--color-action` (see styles.scss). */ --login-fondo: #f8f9fa; --login-borde: #e9ecef; } .login { align-items: center; display: flex; flex: 1; justify-content: center; /* The whole block sits a little below the middle: the logo above it gives the screen its weight. */ padding: var(--space-9) var(--space-5) var(--space-8); } .login__caja { display: flex; flex-direction: column; gap: var(--space-4); max-width: 340px; width: 100%; } /* The brand opens the screen and is the biggest thing on it: it is what fills the empty space. */ .login__logo { align-self: center; display: block; margin-bottom: 0; width: 260px; animation: login-logo-entrada 600ms ease-out both; } @keyframes login-logo-entrada { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } } @media (prefers-reduced-motion: reduce) { .login__logo { animation: none; } } .login__titulo { align-items: center; color: var(--color-text); display: flex; font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600; gap: var(--space-4); margin: 0 0 var(--space-2); white-space: nowrap; } /* The two rules that flank the title, as in the reference screen. */ .login__titulo::before, .login__titulo::after { background: var(--color-border); content: ''; flex: 1; height: 1px; } .login__formulario { display: flex; flex-direction: column; gap: var(--space-3); } .login__campo { width: 100%; --mat-form-field-container-height: 44px; --mat-form-field-container-vertical-padding: 12px; } .login__ojo { color: var(--color-text-secondary); } /* Edge paints its own reveal control over the password field; the eye in the field is ours. */ .login__campo input::-ms-reveal, .login__campo input::-ms-clear { display: none; } .login__error { color: var(--mat-sys-error); font-size: 0.875rem; margin: calc(-1 * var(--space-1)) 0 0; } /* The button shares the fields' width: one column, one border, no icon and no underline. Its border turns teal when the form is complete, and it fades in instead of switching. */ .login__ingresar { align-items: center; background: var(--login-fondo); border: 1px solid var(--login-borde); border-radius: 10px; color: var(--color-text-secondary); cursor: default; display: flex; font: inherit; font-size: 0.9375rem; font-weight: 500; justify-content: center; margin-top: var(--space-2); min-height: 46px; padding: 0 var(--space-5); text-decoration: none; transition: background-color 260ms ease, border-color 260ms ease, color 260ms ease; width: 100%; } .login__ingresar:not(:disabled) { border-color: var(--color-action); color: var(--color-text); cursor: pointer; } .login__ingresar:hover:not(:disabled) { background: var(--color-action-hover); border-color: var(--color-action); } .login__ingresar:focus-visible { outline: 2px solid var(--color-action); outline-offset: 2px; } .login__ingresar:disabled { background: var(--login-fondo); border-color: var(--login-borde); } .login__legal { color: var(--color-text-secondary); font-size: 0.8125rem; margin: var(--space-4) 0 0; text-align: center; } @media (max-width: 600px) { .login { padding: var(--space-7) var(--space-4); } .login__caja { max-width: 100%; } .login__logo { width: 208px; } }