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

body {
    background: #12090d;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

main {
    min-height: 100vh;
}

/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #12090d;
}

/* =========================================================
   LADO IZQUIERDO
========================================================= */
.login-left {
    position: relative;
    min-height: 100vh;
    background-image: url("../images/login-motel.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.login-left-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(10, 5, 8, 0.25) 0%,
            rgba(26, 8, 15, 0.45) 45%,
            rgba(11, 5, 8, 0.82) 100%
        ),
        linear-gradient(
            120deg,
            rgba(143, 25, 58, 0.22) 0%,
            rgba(0, 0, 0, 0.12) 60%
        );
}

.login-left-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 42px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a2254a, #de4168);
    color: white;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(190, 47, 87, 0.25);
}

.login-brand-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.login-brand-subtitle {
    margin-top: 2px;
    font-size: 10px;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.login-hero {
    max-width: 520px;
    margin-top: auto;
    margin-bottom: auto;
}

.login-badge {
    display: inline-block;
    margin-bottom: 14px;
    color: #ff6387;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.login-hero h1 {
    margin: 0 0 18px;
    font-size: 60px;
    line-height: 1.02;
    letter-spacing: -1.8px;
    color: #fff2f5;
}

.login-hero p {
    margin: 0 0 26px;
    max-width: 450px;
    color: rgba(255,255,255,0.74);
    font-size: 18px;
    line-height: 1.65;
}

.login-features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.login-features li {
    position: relative;
    padding-left: 30px;
    color: rgba(255,255,255,0.82);
    font-size: 15px;
}

.login-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(230, 61, 103, 0.15);
    border: 1px solid rgba(230, 61, 103, 0.25);
    color: #ff6e8e;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-left-footer {
    color: rgba(255,255,255,0.35);
    font-size: 10px;
    letter-spacing: 2px;
}

/* =========================================================
   LADO DERECHO
========================================================= */
.login-right {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background:
        radial-gradient(circle at top right, rgba(95, 20, 45, 0.12), transparent 30%),
        linear-gradient(145deg, #171014, #100a0d);
}

.login-form-box {
    width: 100%;
    max-width: 460px;
}

.login-mobile-brand {
    display: none;
}

.login-header {
    margin-bottom: 34px;
}

.login-form-badge {
    display: inline-block;
    margin-bottom: 10px;
    color: #ff5c81;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.login-header h2 {
    margin: 0 0 8px;
    color: white;
    font-size: 44px;
    line-height: 1.1;
}

.login-header p {
    margin: 0;
    color: #8d8087;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   FORMULARIO
========================================================= */
.login-form {
    width: 100%;
}

.login-group {
    margin-bottom: 18px;
}

.login-group label {
    display: block;
    margin-bottom: 8px;
    color: #b3a7ad;
    font-size: 12px;
    font-weight: 600;
}

.login-input-wrap {
    min-height: 54px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #3a252e;
    background: #0c0709;
    transition: 0.2s ease;
    overflow: hidden;
}

.login-input-wrap:focus-within {
    border-color: #c23159;
    box-shadow: 0 0 0 3px rgba(194, 49, 89, 0.08);
}

.login-input-wrap.is-error {
    border-color: #d84e68;
}

.login-input-icon {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b6d73;
    font-size: 14px;
    flex-shrink: 0;
}

.login-input-wrap input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: white;
    font-size: 14px;
    padding: 16px 12px 16px 0;
}

.login-input-wrap input::placeholder {
    color: #5f5258;
}

.toggle-password {
    margin-right: 8px;
    border: 0;
    background: transparent;
    color: #9a8d93;
    font-size: 11px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.toggle-password:hover {
    color: #f26786;
    background: rgba(210, 54, 92, 0.08);
}

.login-error-text {
    display: block;
    margin-top: 7px;
    color: #ef667f;
    font-size: 11px;
}

/* =========================================================
   OPCIONES
========================================================= */
.login-options {
    margin: 8px 0 24px;
}

.remember-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.remember-box input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.remember-check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid #4c333d;
    background: #0d080a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.remember-box input:checked + .remember-check {
    border-color: #cc365c;
    background: linear-gradient(135deg, #952343, #d93b62);
}

.remember-box input:checked + .remember-check::after {
    content: "✓";
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.remember-label {
    color: #8f8388;
    font-size: 13px;
}

/* =========================================================
   BOTÓN
========================================================= */
.login-submit {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #ac294d, #e24167);
    box-shadow: 0 12px 26px rgba(196, 55, 93, 0.22);
    transition: 0.2s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(196, 55, 93, 0.28);
}

.login-submit-arrow {
    font-size: 22px;
}

/* =========================================================
   FOOTER
========================================================= */
.login-security {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8d8186;
    font-size: 12px;
}

.security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #41d58b;
    display: inline-block;
}

.login-security-text {
    margin-top: 6px;
    text-align: center;
    color: #5d5256;
    font-size: 11px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
    .login-hero h1 {
        font-size: 48px;
    }

    .login-hero p {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 40px 24px;
    }

    .login-form-box {
        max-width: 480px;
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 34px;
    }

    .login-header h2 {
        font-size: 38px;
    }
}

@media (max-width: 520px) {
    .login-right {
        padding: 30px 18px;
    }

    .login-header h2 {
        font-size: 32px;
    }

    .login-header p {
        font-size: 13px;
    }

    .login-submit {
        min-height: 52px;
        font-size: 13px;
    }
}