:root {
    --login-green: #0d5138;
    --login-green-hover: #093f2b;
    --login-ink: #17251f;
    --login-muted: #66756f;
    --login-border: #cbd5d1;
}

.login-page { background: #fff; color: var(--login-ink); margin: 0; min-height: 100vh; }
.login-shell { display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(500px, 0.95fr); min-height: 100vh; }
.login-visual { background: #183d31 url('../img/login-corredor-oficial.jpg') 54% center / cover no-repeat; min-height: 100vh; overflow: hidden; position: relative; }
.login-visual-shade { background: rgba(5, 54, 37, 0.7); inset: 0; position: absolute; }
.login-visual-copy { bottom: 27%; color: #fff; max-width: 430px; padding-right: clamp(2rem, 6vw, 6rem); position: absolute; right: 0; text-align: right; }
.login-visual-copy p { font-size: clamp(1.45rem, 2.4vw, 2.25rem); font-weight: 500; line-height: 1.28; margin: 0; }
.login-visual-rule { background: #f5ce25; display: block; height: 3px; margin: 0 0 1rem auto; width: 46px; }
.login-visual-caption { bottom: 1.5rem; color: rgba(255, 255, 255, 0.88); font-size: 0.74rem; left: 1.75rem; position: absolute; }
.login-access { align-items: center; background: #fff; display: flex; justify-content: center; min-width: 0; padding: 3rem clamp(2rem, 7vw, 7.5rem); }
.login-access-inner { max-width: 560px; width: 100%; }
.login-brand { align-items: center; color: var(--login-ink); display: flex; gap: 0.85rem; justify-content: center; margin-bottom: 3.25rem; text-decoration: none; width: 100%; }
.login-brand img { display: block; height: auto; max-height: 88px; max-width: 300px; object-fit: contain; }
.login-brand-mark { align-items: center; background: var(--login-green); border: 6px solid #f5ce25; border-radius: 50%; color: #fff; display: inline-flex; font-size: 2rem; font-weight: 700; height: 70px; justify-content: center; width: 70px; }
.login-brand-text { display: grid; font-size: 2.15rem; font-weight: 750; line-height: 1; }
.login-brand-text small { font-size: 0.8rem; font-weight: 500; margin-bottom: 0.35rem; }
.login-heading { margin-bottom: 2rem; }
.login-kicker { color: var(--login-green); font-size: 0.74rem; font-weight: 700; margin-bottom: 0.55rem; text-transform: uppercase; }
.login-heading h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.55rem; }
.login-heading p, .login-security-note { color: var(--login-muted); font-size: 0.9rem; margin: 0; }
.login-form { display: grid; gap: 1.2rem; }
.login-form label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.42rem; }
.login-form input { background: #f8faf9; border: 1px solid var(--login-border); border-radius: 6px; color: var(--login-ink); min-height: 46px; outline: none; padding: 0.65rem 0.8rem; transition: border-color 150ms ease, box-shadow 150ms ease; width: 100%; }
.login-form input:focus { border-color: var(--login-green); box-shadow: 0 0 0 3px rgba(13, 81, 56, 0.12); }
.login-form input[readonly] { color: #52615b; }
.login-form .login-code { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.28rem; text-align: center; }
.login-submit { background: var(--login-green); border: 0; border-radius: 6px; color: #fff; font-size: 0.9rem; font-weight: 700; min-height: 44px; transition: background 150ms ease; width: 100%; }
.login-submit:hover:not(:disabled) { background: var(--login-green-hover); }
.login-submit:disabled, .login-secondary-action button:disabled { cursor: not-allowed; opacity: 0.55; }
.login-secondary-action { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; justify-content: flex-end; margin-top: 0.9rem; text-align: right; }
.login-secondary-action button, .login-secondary-action a, .login-footer a { background: none; border: 0; color: var(--login-green); font-size: 0.82rem; padding: 0; text-decoration: none; }
.login-secondary-action button:hover, .login-secondary-action a:hover { text-decoration: underline; }
.login-email-help { color: var(--login-muted); font-size: 0.8rem; margin: 0.75rem 0 0; text-align: right; }
.login-security-note { border-top: 1px solid #e3e9e6; margin-top: 2rem; padding-top: 1rem; }
.login-alert { border-radius: 6px; font-size: 0.86rem; margin-bottom: 1.2rem; }
.login-footer { align-items: center; color: #84918c; display: flex; font-size: 0.72rem; justify-content: space-between; margin-top: 3rem; }

@media (max-width: 900px) {
    .login-shell { display: block; }
    .login-visual { background-position: center 56%; min-height: 230px; }
    .login-visual-copy { bottom: 2rem; max-width: 340px; padding-right: 1.5rem; }
    .login-visual-copy p { font-size: 1.4rem; }
    .login-visual-caption { display: none; }
    .login-access { min-height: calc(100vh - 230px); padding: 2.5rem 1.25rem; }
    .login-brand { margin-bottom: 2rem; }
}

@media (max-width: 520px) {
    .login-visual { min-height: 175px; }
    .login-visual-copy { bottom: 1.25rem; }
    .login-visual-copy p { font-size: 1.15rem; }
    .login-access { min-height: calc(100vh - 175px); padding: 2rem 1rem; }
    .login-brand-mark { height: 56px; width: 56px; }
    .login-brand-text { font-size: 1.7rem; }
    .login-footer { align-items: flex-start; flex-direction: column; gap: 0.6rem; }
}
