/* ===================================================
   LOGIN PAGE STYLES
   Sistema Integral de Registro Estatal - Tamaulipas
   =================================================== */

:root {
    --c1: #ab0033;
    --c1-dark: #7a0025;
    --c2: #bc955c;
    --c3: #ddc9a3;
    --c4: #54565a;
    --font: 'Montserrat', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background: #f5f4f1;
    min-height: 100vh;
}

/* ===================================================
   WRAPPER: full-height flex row
   =================================================== */

.lp-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ===================================================
   LEFT PANEL — brand/decoration
   =================================================== */

.lp-brand {
    width: 52%;
    background: linear-gradient(150deg, #ab0033 0%, #7a0025 55%, #500018 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 3.5rem;
    overflow: hidden;
}

/* decorative circles */
.lp-brand::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.07);
    top: -180px;
    right: -130px;
    pointer-events: none;
}

.lp-brand::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.06);
    bottom: -120px;
    left: -80px;
    pointer-events: none;
}

.lp-brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
}

.lp-logo-top {
    max-width: 300px;
    width: 100%;
    margin-bottom: 2.5rem;
    filter: brightness(0) invert(1);
}

.lp-brand-title {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.45;
    margin: 0 0 1.2rem;
}

.lp-brand-title strong {
    display: block;
    font-weight: 800;
}

.lp-divider {
    width: 50px;
    height: 3px;
    background: var(--c2);
    border-radius: 3px;
    margin: 0 auto 1.2rem;
}

.lp-brand-sub {
    color: rgba(255,255,255,.65);
    font-size: .875rem;
    line-height: 1.6;
    margin: 0 0 2.5rem;
}

.lp-logo-bottom {
    max-width: 180px;
    width: 100%;
    filter: brightness(0) invert(1);
    opacity: .8;
}

/* ===================================================
   RIGHT PANEL — form
   =================================================== */

.lp-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem;
    background: #fff;
}

.lp-form-box {
    width: 100%;
    max-width: 400px;
}

/* mobile logo (visible only < lg) */
.lp-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 1.8rem;
}

.lp-mobile-logo img {
    max-width: 190px;
}

/* module badge */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(171,0,51,.09);
    color: var(--c1);
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: .9rem;
}

.lp-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 .35rem;
    font-family: var(--font);
}

.lp-subtitle {
    font-size: .875rem;
    color: var(--c4);
    margin: 0 0 2rem;
}

/* ===================================================
   FORM FIELDS
   =================================================== */

.lp-field {
    margin-bottom: 1.25rem;
}

.lp-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--c4);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 6px;
    font-family: var(--font);
}

.lp-label i {
    font-size: .85rem;
    color: var(--c2);
}

.lp-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.lp-forgot {
    font-size: .78rem;
    color: var(--c1);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font);
}

.lp-forgot:hover {
    text-decoration: underline;
    color: var(--c1-dark);
}

.lp-input {
    display: block;
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid #e0ddd8;
    border-radius: 8px;
    font-size: .9rem;
    font-family: var(--font);
    color: #1a1a2e;
    background: #f9f8f5;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.lp-input:focus {
    border-color: var(--c1);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(171,0,51,.1);
}

.lp-input::placeholder {
    color: #b0acaa;
}

.lp-pw-wrap {
    position: relative;
}

.lp-pw-wrap .lp-input {
    padding-right: 44px;
}

.lp-pw-toggle {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--c4);
    cursor: pointer;
    padding: 8px 10px;
    font-size: 1rem;
    border-radius: 6px;
    transition: color .2s, background .2s;
}

.lp-pw-toggle:hover {
    color: var(--c1);
    background: rgba(171,0,51,.06);
}

/* ===================================================
   ERROR
   =================================================== */

.lp-error {
    font-size: .83rem;
    font-weight: 500;
    color: var(--c1);
    text-align: center;
    min-height: 0;
    border-radius: 7px;
    transition: all .2s;
    margin-bottom: .75rem;
    font-family: var(--font);
}

.lp-error:not(:empty) {
    padding: 9px 14px;
    background: rgba(171,0,51,.07);
    border: 1px solid rgba(171,0,51,.18);
}

/* ===================================================
   BUTTONS
   =================================================== */

.lp-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--c1) 0%, var(--c1-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: .93rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    margin-bottom: 1.1rem;
}

.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(171,0,51,.35);
}

.lp-btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.lp-btn-primary i {
    transition: transform .2s;
}

.lp-btn-primary:hover i {
    transform: translateX(4px);
}

.lp-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: .78rem;
    margin-bottom: 1.1rem;
}

.lp-sep::before,
.lp-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e5e0;
}

.lp-register {
    text-align: center;
}

.lp-register p {
    font-size: .83rem;
    color: var(--c4);
    margin: 0 0 .6rem;
    font-family: var(--font);
}

.lp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 24px;
    background: transparent;
    color: var(--c2);
    border: 1.5px solid var(--c2);
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}

.lp-btn-secondary:hover {
    background: var(--c2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(188,149,92,.3);
}

/* ===================================================
   FOOTER
   =================================================== */

.lp-footer {
    margin-top: 2rem;
    text-align: center;
}

.lp-footer p {
    font-size: .7rem;
    color: #c0bcb8;
    font-family: var(--font);
    margin: 0;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 991px) {
    .lp-brand {
        display: none;
    }
    .lp-mobile-logo {
        display: block;
    }
}

@media (max-width: 480px) {
    .lp-form-side {
        padding: 2rem 1.25rem;
    }
    .lp-title {
        font-size: 1.55rem;
    }
}
