/* Login RIALGAVA — panel partido según mockup */
body.lg-body {
    min-height: 100vh;
    margin: 0;
    background: #d7e0ee;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: #1a2b45;
}

body.lg-body .wrapper,
body.lg-body #content {
    display: block;
    width: 100% !important;
    max-width: none;
    min-height: 100vh;
}

.lg-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 18px 24px;
    box-sizing: border-box;
}

.lg-alerts {
    width: 100%;
    max-width: 1120px;
    margin-bottom: 12px;
}

.lg-split {
    width: 100%;
    max-width: 1120px;
    display: flex;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(16, 42, 86, 0.18);
    min-height: 620px;
}

.lg-panel {
    position: relative;
    flex: 1 1 50%;
    width: 50%;
    padding: 36px 40px 32px;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.lg-panel-login {
    background: #0b2a56;
    color: #fff;
    overflow: hidden;
}

.lg-panel-login::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 28px;
    width: 128px;
    height: 86px;
    background-image: radial-gradient(circle, rgba(120, 168, 230, 0.5) 1.3px, transparent 1.6px);
    background-size: 12px 12px;
    pointer-events: none;
    z-index: 0;
}

.lg-panel-login::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 58%;
    background: url("../images/logo.png") left center / cover no-repeat;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

.lg-panel-login > * {
    position: relative;
    z-index: 1;
}

.lg-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.lg-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.lg-brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
}

.lg-heading {
    text-align: center;
    margin: 0 0 6px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.lg-sub {
    text-align: center;
    margin: 0 0 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.lg-card {
    background: #fff;
    color: #1a2b45;
    border-radius: 12px;
    padding: 22px 22px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lg-card .lg-field {
    margin-bottom: 14px;
}

.lg-label,
.lg-card .form-label,
.lg-search .form-label,
.lg-search-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e55;
    margin-bottom: 6px;
}

.lg-control {
    position: relative;
}

.lg-control .form-control,
.lg-search-control .form-control {
    height: 44px;
    padding: 8px 40px 8px 40px;
    border: 0;
    background: #eef1f6;
    border-radius: 8px;
    font-size: 14px;
    color: #1a2b45;
    box-shadow: none;
}

.lg-control .form-control:focus,
.lg-search-control .form-control:focus {
    background: #e8edf5;
    box-shadow: 0 0 0 3px rgba(29, 94, 210, 0.18);
}

.lg-ico,
.lg-eye {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #7b889a;
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
}

.lg-ico {
    left: 14px;
    pointer-events: none;
}

.lg-eye {
    right: 12px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    color: #6b7789;
}

.lg-eye:hover {
    color: #1d5ed2;
}

.lg-remember .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: auto;
    padding-left: 0;
    margin: 4px 0 14px;
}

.lg-remember .form-check-input {
    float: none;
    margin: 0;
    position: static;
    width: 16px;
    height: 16px;
    border-color: #c5ceda;
}

.lg-remember .form-check-input:checked {
    background-color: #1d5ed2;
    border-color: #1d5ed2;
}

.lg-remember .form-check-label {
    font-size: 14px;
    color: #2c3e55;
    margin: 0;
}

.lg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: #1d5ed2 !important;
    border-color: #1d5ed2 !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: none;
}

.lg-btn:hover,
.lg-btn:focus {
    background: #164bb3 !important;
    border-color: #164bb3 !important;
    color: #fff !important;
}

.lg-help {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12.5px;
    line-height: 1.45;
}

.lg-help-ico {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1d5ed2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 1px;
}

.lg-help a {
    color: #6ea8ff;
    font-weight: 600;
    text-decoration: none;
}

.lg-help a:hover {
    text-decoration: underline;
}

.lg-panel-search {
    background: #fff;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
}

.lg-search-icon {
    width: 72px;
    height: 72px;
    margin: 8px auto 16px;
    border-radius: 50%;
    background: #1d5ed2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 18px rgba(29, 94, 210, 0.28);
}

.lg-search-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #1a2b45;
}

.lg-search-sub {
    margin: 0 auto 12px;
    max-width: 380px;
    font-size: 14px;
    color: #5b6b80;
    line-height: 1.45;
}

.lg-rule {
    width: 72px;
    height: 3px;
    background: #1d5ed2;
    border: 0;
    border-radius: 2px;
    margin: 0 auto 22px;
}

.lg-search-form {
    text-align: left;
}

.lg-search-control {
    position: relative;
    margin-bottom: 16px;
}

.lg-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: auto;
    padding: 12px 14px;
    background: #e8f1fc;
    border-radius: 8px;
    color: #2a4a78;
    font-size: 13px;
    text-align: left;
    line-height: 1.4;
}

.lg-note i {
    color: #1d5ed2;
    margin-top: 2px;
}

.lg-footer {
    width: 100%;
    max-width: 1120px;
    margin-top: 14px;
    background: #f3f6fb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 42, 86, 0.08);
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 0.9fr;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    min-height: 78px;
}

.lg-footer-sec {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5b6b80;
    font-size: 12px;
    line-height: 1.35;
}

.lg-footer-sec i {
    color: #1d5ed2;
    font-size: 22px;
}

.lg-footer-copy {
    text-align: center;
    color: #6b7789;
    font-size: 12px;
    line-height: 1.45;
}

.lg-footer-copy a {
    color: #1d5ed2;
    font-weight: 600;
    text-decoration: none;
}

.lg-footer-copy a:hover {
    text-decoration: underline;
}

.lg-footer-map {
    height: 56px;
    background: url("../images/logo.png") right center / contain no-repeat;
    opacity: 0.7;
}

.lg-card .invalid-feedback,
.lg-card .help-block {
    font-size: 12px;
}

@media (max-width: 991px) {
    .lg-split {
        flex-direction: column;
        min-height: 0;
    }
    .lg-panel {
        width: 100%;
        flex: 1 1 auto;
        padding: 28px 22px;
    }
    .lg-heading {
        font-size: 26px;
    }
    .lg-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .lg-footer-sec {
        justify-content: center;
    }
    .lg-footer-map {
        height: 48px;
        background-position: center;
    }
}
