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

body {
    background-color: var(--ec-bg);
    color: var(--ec-text-body);
    font-family: "Inter", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-top: 4px solid var(--ec-accent);
}

.login-main {
    flex: 1;
    display: flex;
    align-items: stretch;
    padding: 40px;
    background-image: url('../img/bg-login-v3.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* ── Full-page layout ── */

.login-page {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100%;
}

/* Left: transparent info panel over the background image */
.login-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 56px;
    position: relative;
}

/* Dark overlay for readability */
.login-info-side::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}


.lis-top {
    position: relative;
    z-index: 1;
}

.lis-logo-group {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 28px;
}

.lis-logo {
    height: 110px;
    width: auto;
    display: block;
}

.lis-brand {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    font-family: "Michroma", sans-serif;
    text-transform: uppercase;
    letter-spacing: 15px;
    text-align: center;
    margin: 0;
    padding: 7px 0;
}

.lis-year {
    font-size: 80px;
    font-weight: 900;
    color: #f97316;
    line-height: 1;
    letter-spacing: -2px;
    font-family: "Michroma", sans-serif;
    margin-bottom: 14px;
}

.lis-tagline {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.25;
    letter-spacing: 0.3px;
    font-family: "Michroma", sans-serif;
}

.lis-tagline__accent { color: #f97316; }

/* Bottom event info bar */
.lis-event-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(10,10,20,.65);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 22px 28px;
    backdrop-filter: blur(6px);
    max-width: 480px;
}

.lis-event-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.5;
}

.lis-event-item i {
    font-size: 26px;
    color: #f97316;
    flex-shrink: 0;
}

.lis-event-sep {
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,.22);
    flex-shrink: 0;
}

/* Right: white floating card */
.login-card {
    width: 480px;
    flex-shrink: 0;
    background: #fff;
    margin: 36px 36px 36px 0;
    border-radius: 20px;
    box-shadow: -6px 0 32px rgba(0,0,0,.22), 0 8px 32px rgba(0,0,0,.18);
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1a1a1a;
    overflow-y: auto;
}

/* backward compat: templates that still use #mid inside login layout */
#mid {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-footer {
    background-color: var(--ec-bg-elevated);
    border-top: 1px solid rgba(var(--ec-ink), .08);
    text-align: center;
    color: var(--ec-text-muted);
    font-size: 11px;
    padding: 10px 16px;
}

.login-footer img {
    height: 16px;
    vertical-align: middle;
    margin: 0 4px;
}


.login-box {
    background-color: var(--ec-bg-surface);
    border: 1px solid rgba(var(--ec-ink), .10);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
    width: 1584px;
    max-width: 100%;
    min-height: 634px;
    font-family: "Inter", sans-serif;
    display: flex;
    overflow: hidden;
}

.login-banner-side {
    width: 60%;
    flex-shrink: 0;
    position: relative;
}

.login-banner-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, transparent 70%),
        linear-gradient(to top, rgba(0,0,0,.70) 0%, rgba(0,0,0,.25) 40%, transparent 65%);
    z-index: 1;
    pointer-events: none;
}

.login-banner-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.login-banner-title {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.login-banner-title__main {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.login-banner-title__sub {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
}

.login-banner-tagline {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    z-index: 2;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.login-banner-tagline__accent {
    color: var(--ec-accent);
}

.login-form-side {
    width: 40%;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #fff;
    color: #1a1a1a;
}

.login-form-side .submitButton {
    max-width: none;
}

/* ── New login form elements ── */

.lf-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.lf-icon-img {
    object-fit: contain;
    display: block;
}

.lf-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.2;
}

.lf-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #f97316;
    margin: 0 0 8px;
}

.lf-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
}

.lf-form {
    width: 100%;
}

.lf-field {
    width: 100%;
    margin-bottom: 14px;
    text-align: left;
}

.lf-label {
    display: block !important;
    padding-left: 0 !important;
    margin: 0 0 6px !important;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    position: static !important;
}

.lf-label::before {
    display: none !important;
}

.lf-input-wrap {
    position: relative;
}

.lf-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
}

.lf-input {
    width: 100%;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 14px 0 42px;
    font-size: 15px;
    color: #1a1a1a;
    background: #f5f5f5;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.lf-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
    background: #fff;
}

.lf-input::placeholder {
    color: #888;
    opacity: 1;
}

.lf-input--pw {
    padding-right: 44px;
}

.lf-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    font-size: 17px;
    line-height: 1;
}

.lf-eye-btn:hover { color: #555; }

.lf-forgot {
    width: 100%;
    text-align: right;
    margin-bottom: 20px;
}

.lf-forgot a {
    color: #f97316;
    font-size: 14px;
    text-decoration: none;
}

.lf-forgot a:hover { text-decoration: underline; }

.lf-btn-entrar {
    width: 100%;
    height: 52px;
    background-color: #f97316;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    transition: filter .15s;
}

.lf-btn-entrar:hover { filter: brightness(88%); }

.lf-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: #bbb;
    font-size: 13px;
}

.lf-divider::before,
.lf-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.lf-btn-register {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    margin-bottom: 14px;
    font-family: "Inter", sans-serif;
    transition: border-color .15s;
}

.lf-btn-register:hover { border-color: #f97316; color: #444; text-decoration: none; }

.lf-btn-register span {
    color: #f97316;
    font-weight: 600;
}

.lf-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.lf-help:hover { text-decoration: none; color: #444; }

.lf-help span {
    color: #f97316;
    font-weight: 600;
}

.lf-input:-webkit-autofill,
.lf-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 40px #f5f5f5 inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

.form-signin-heading {
    font-size: 22px;
    color: var(--ec-text-strong);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
}

.formInputField {
    font-size: 15px !important;
    background-color: var(--ec-bg-input) !important;
    color: var(--ec-text-body) !important;
    border: 1px solid rgba(var(--ec-ink), .15) !important;
    border-radius: 10px !important;
    -moz-border-radius: 10px !important;
    -webkit-border-radius: 10px !important;
    margin-bottom: 12px !important;
    display: block !important;
    padding: 0 18px !important;
    width: 100% !important;
    text-align: left !important;
    height: 53px !important;
    transition: border-color .15s, box-shadow .15s;
}

.formInputField:focus {
    border-color: var(--ec-accent) !important;
    box-shadow: 0 0 0 3px var(--ec-accent-shadow) !important;
    outline: none !important;
}

.formInputField::placeholder {
    color: var(--ec-text-placeholder) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 40px var(--ec-bg-input) inset !important;
    -moz-box-shadow: 0 0 0 40px var(--ec-bg-input) inset !important;
    box-shadow: 0 0 0 40px var(--ec-bg-input) inset !important;
    -webkit-text-fill-color: var(--ec-text-body) !important;
    -webkit-animation-name: autofill;
    -webkit-animation-fill-mode: both;
}

@-webkit-keyframes autofill {
    to {
        color: var(--ec-text-body);
        background: transparent;
    }
}

.form-control:focus {
    box-shadow: none;
}

.form-control {
    border-radius: 10px !important;
}

.submitButton {
    font-size: 15px !important;
    font-weight: 600;
    background-color: var(--ec-accent);
    color: #ffffff;
    border-radius: 10px !important;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border: 0;
    cursor: pointer;
    display: block;
    width: 100%;
    min-width: 200px;
    max-width: 450px;
    height: 53px;
    outline: 0;
    transition: filter .15s;
    font-family: "Inter", sans-serif;
}

.submitButton:hover {
    filter: brightness(88%);
}

#passRecoveryText {
    font-size: 14px;
    margin-top: 18px;
    text-align: center;
}

#passRecoveryText a {
    color: var(--ec-accent);
}

#rememberMeRow {
    padding-right: 0;
}

#rememberMeText {
    font-size: 14px;
    line-height: 26px;
    padding-right: 0;
    color: var(--ec-text-body);
}

.textColor {
    color: var(--ec-text-body) !important;
}

.rc-anchor-light.rc-anchor-normal {
    border-radius: 15px;
    margin-bottom: 30px;
}

.g-recaptcha {
    margin-bottom: 20px !important;
    margin-top: 20px !important;
}

.cb {
    display: none;
}

label {
    display: inline-block;
    position: relative;
    padding-left: 25px;
    font-size: 16px;
    line-height: 20px;
    margin: 5px;
}

label:before {
    line-height: 20px;
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    position: absolute;
    margin-top: 7px;
    left: 0;
    background-color: var(--ec-bg-elevated);
    border: 1px solid rgba(var(--ec-ink), .25);
    font-size: 18px !important;
}

input[type="checkbox"]:checked + label:before {
    content: "\2713";
    color: var(--ec-accent);
    text-align: center;
    line-height: 12px;
}

#secondRow {
    text-align: center;
}

#firstRow {
    margin-top: 80px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
        align-items: center;
    }

    .login-info-side {
        min-height: 260px;
        padding: 36px 24px 24px;
    }

    .lis-year { font-size: 64px; }
    .lis-tagline { font-size: 20px; }
    .lis-event-bar { max-width: 100%; }

    .login-card {
        width: calc(100% - 32px);
        margin: 0 16px 36px;
        padding: 36px 24px;
    }

    /* legacy */
    .login-box {
        flex-direction: column;
        border-radius: 12px;
    }

    .login-banner-side {
        width: 100%;
        max-height: 200px;
    }

    .login-form-side {
        width: 100%;
        padding: 32px 24px;
    }
}
