@font-face {
    font-family: Albert;
    src: url('/fonts/AlbertSans-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

.login-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    color: #1e272d;
    background: #f0f7fc;
    font-family: Albert, Arial, sans-serif;
    font-size: 16px;
}

.login-container {
    width: min(100% - 64px, 1728px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.login-header { background: #1e272d; color: #fff; }
.login-header .login-container { min-height: 120px; justify-content: space-between; }
.login-brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; white-space: nowrap; font-size: 34px; line-height: 1; }
.login-brand svg { width: 40px; height: 36px; color: #e5e500; }
.login-logo { width: auto; max-width: 250px; max-height: 56px; object-fit: contain; }
.login-current { display: inline-flex; align-items: center; gap: 7px; padding: 8px 20px; border-radius: 7px; background: #e5e500; color: #1e272d; font-size: 14px; font-weight: 700; }
.login-current svg { width: 25px; height: 25px; }

.login-main { position: relative; isolation: isolate; overflow: hidden; flex: 1; display: grid; place-items: center; padding: 80px 24px; }
.login-main::before { content: ''; position: absolute; z-index: -1; width: 1200px; height: 900px; left: calc(50% - 1100px); top: 50%; transform: translateY(-50%) rotate(-45deg); background: url('/images/valler/marca-dagua.svg') center / contain no-repeat; opacity: .25; pointer-events: none; }
.login-card { width: 100%; max-width: 620px; padding: 44px 40px 48px; border-radius: 20px; background: #fff; }
.login-card h1 { margin: 0; text-align: center; font-size: 32px; font-weight: 700; line-height: 1.2; }
.login-description { margin: 18px 0 36px; text-align: center; font-size: 18px; line-height: 1.5; }
.login-field + .login-field { margin-top: 22px; }
.login-field label { display: block; margin-bottom: 8px; font-weight: 500; }
.login-field input { display: block; width: 100%; min-height: 58px; padding: 12px 16px; border: 2px solid #1e272d; border-radius: 8px; background: #fff; color: #1e272d; font: inherit; }
.login-field input::placeholder { color: #68747c; }
.login-field input[aria-invalid='true'] { border-color: #dc2626; }
.login-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: 14px; }
.login-remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.login-remember input { width: 17px; height: 17px; border: 1px solid #68747c; border-radius: 4px; color: #1e272d; }
.login-options a, .login-contact { text-decoration: underline; text-underline-offset: 3px; }
.login-submit { display: block; width: 100%; min-height: 58px; margin-top: 24px; padding: 14px; border: 0; border-radius: 8px; background: #e5e500; color: #1e272d; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.login-submit:hover { background: #d1d100; }
.login-page :is(a, button, input):focus-visible { outline: 3px solid #8b8500; outline-offset: 4px; }

.login-footer { background: #fff; }
.login-footer .login-container { min-height: 94px; padding-block: 24px; }
.login-footer .login-brand { font-size: 20px; }
.login-footer .login-brand svg { width: 24px; height: 22px; }
.login-footer .login-logo { max-width: 160px; max-height: 32px; }
.login-footer p { margin: 0 0 0 auto; font-size: 14px; }
.login-contact { padding-left: 20px; border-left: 1px solid #1e272d; font-size: 14px; }

@media (max-width: 640px) {
    .login-container { width: calc(100% - 40px); gap: 20px; }
    .login-header .login-container { min-height: 88px; }
    .login-header .login-brand { gap: 6px; font-size: 24px; }
    .login-header .login-brand svg { width: 30px; height: 28px; }
    .login-header .login-logo { max-width: 180px; max-height: 44px; }
    .login-current { padding: 8px 12px; }
    .login-current svg { width: 20px; height: 20px; }
    .login-main { padding: 40px 20px; }
    .login-card { padding: 32px 24px; border-radius: 16px; }
    .login-card h1 { font-size: 28px; }
    .login-description { margin-bottom: 28px; font-size: 16px; }
    .login-footer .login-container { flex-wrap: wrap; justify-content: center; text-align: center; }
    .login-footer p { width: 100%; margin: 0; order: 1; }
}
