/* ==========================================
   Secret Maps - login.css
   Diseño split-screen
   ========================================== */

/* ── Layout split ───────────────────────── */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.login-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Panel izquierdo: branding ──────────── */
.login-brand {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: rgba(0, 0, 0, .18);
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.login-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: .2px;
    margin-bottom: 36px;
}

.login-logo-icon {
    width: 28px;
    height: 28px;
    fill: var(--accent);
    flex-shrink: 0;
}

.login-brand-title {
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #fff;
}

.login-brand-title em {
    font-style: normal;
    color: var(--accent);
}

.login-brand-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Features list */
.login-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(8px);
}

.lf-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.login-features li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-features li strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.login-features li span {
    font-size: 12px;
    color: rgba(255, 255, 255, .60);
}

/* Glows decorativos */
.login-brand-glows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.lb-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .22;
}

.lb-glow-1 {
    width: 320px;
    height: 320px;
    background: var(--accent);
    top: -80px;
    right: -80px;
}

.lb-glow-2 {
    width: 260px;
    height: 260px;
    background: #99f2c8;
    bottom: -60px;
    left: -60px;
}

/* ── Panel derecho: formulario ──────────── */
.login-form-panel {
    width: min(100%, 480px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: rgba(0, 0, 0, .10);
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
}

.login-form-header {
    margin-bottom: 32px;
}

.login-form-header h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 6px;
}

.login-form-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, .68);
}

/* Form fields */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lf-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lf-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
}

.lf-group label svg {
    width: 15px;
    height: 15px;
    fill: rgba(255, 255, 255, .6);
    flex-shrink: 0;
}

.lf-group input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .22);
    color: white;
    font-size: 15px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.lf-group input::placeholder {
    color: rgba(255, 255, 255, .40);
}

.lf-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 212, 35, .18);
}

/* Input con botón toggle password */
.lf-input-wrap {
    position: relative;
}

.lf-input-wrap input {
    padding-right: 46px;
}

.lf-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: rgba(255, 255, 255, .45);
    display: flex;
    align-items: center;
    transition: color .15s;
}

.lf-toggle-pw:hover,
.lf-toggle-pw.active {
    color: var(--accent);
}

.lf-toggle-pw svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Row: recordarme + olvidaste */
.lf-row-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -4px;
}

.lf-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    user-select: none;
}

.lf-remember input[type="checkbox"] {
    display: none;
}

.lf-check-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}

.lf-remember input[type="checkbox"]:checked + .lf-check-box {
    background: var(--accent);
    border-color: var(--accent);
}

.lf-remember input[type="checkbox"]:checked + .lf-check-box::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--accent-text);
    border-bottom: 2px solid var(--accent-text);
    transform: rotate(-45deg) translateY(-2px);
    display: block;
}

.lf-forgot {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity .15s;
}

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

/* Submit button */
.lf-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    margin-top: 4px;
    letter-spacing: .2px;
}

.lf-submit svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Alert message */
.lf-alert {
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.lf-alert.ok {
    background: rgba(100, 255, 180, .14);
    border: 1px solid rgba(100, 255, 180, .30);
    color: #c8ffdf;
}

.lf-alert.err {
    background: rgba(255, 80, 80, .12);
    border: 1px solid rgba(255, 80, 80, .28);
    color: #ffd1d1;
}

/* Footer */
.login-form-footer {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form-footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, .62);
}

.login-form-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.login-form-footer a:hover {
    text-decoration: underline;
}

.lf-home-link {
    color: rgba(255, 255, 255, .50) !important;
    font-weight: 400 !important;
    font-size: 12px;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
    .login-brand {
        display: none;
    }

    .login-form-panel {
        width: 100%;
        padding: 40px 24px;
    }
}
