﻿/* RESET */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* CONTENEDOR */
.ltp-login {
    display: flex;
    height: 100vh;
}

/* LEFT PANEL */
.ltp-login-left {
    width: 70%;
    position: relative;
    overflow: hidden;
}

    /* VIDEO */
    .ltp-login-left video {
        position: absolute;
        top: 49%;
        left: 50%;
        height: 100%;
        width: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        pointer-events: none;
    }

/* LOGO */
.ltp-brand h1 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #0b1f33;
}

/* TITLE */
.ltp-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #0b1f33;
}

/* FORM */
.ltp-form {
    display: flex;
    flex-direction: column;
}

    .ltp-form label {
        font-size: 14px;
        margin-bottom: 6px;
        color: #333;
    }

    /* INPUT */
    .ltp-form input[type="email"],
    .ltp-form input[type="password"] {
        width: stretch;
        padding: 14px;
        border-radius: 10px;
        border: 1px solid #ddd;
        margin-bottom: 20px;
        font-size: 14px;
        background: #fff;
    }

/* REMEMBER */
.ltp-remember {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .ltp-remember input {
        margin-right: 8px;
    }

/* BUTTON */
.ltp-form button {
    width: 100%;
    padding: 16px;
    background: #e6003d;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .ltp-form button:hover {
        background: #c50034;
    }

/* FORGOT */
.ltp-forgot {
    text-align: center;
    margin-top: 20px;
    color: #e6003d;
    font-size: 14px;
    text-decoration: none;
}

/* FOOTER */
.ltp-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.75rem;
    color: #6a7282;
}

    .ltp-footer a {
        font-size: 0.75rem;
        color: #6a7282;
        text-decoration: none;
    }

        .ltp-footer a:hover {
            color: #E40046;
        }

    .ltp-footer p {
        margin: 5px 0px;
    }

a.pl10 {
    padding-left: 10px;
}

a.pr10 {
    padding-right: 10px;
}

/* RIGHT PANEL */
.ltp-login-right {
    width: 30%;
    padding: 60px 80px;
    background: #f5f6f8;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* OVERLAY */
.ltp-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    pointer-events: none;
    z-index: 1;
}

/* Asegúrate de que el texto esté por encima */
.ltp-overlay {
    position: absolute;
    bottom: 80px;
    left: 80px;
    color: white;
    max-width: 400px;
    z-index: 2;
}

    .ltp-overlay h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .ltp-overlay p {
        font-size: 16px;
        opacity: 0.9;
    }

.ltp-error {
    background: #ffe5e5;
    color: #d8000c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .ltp-login {
        flex-direction: column;
    }

    .ltp-login-right {
        width: 100%;
    }

    .ltp-login-left {
        display: none;
    }
}


/* TOAST CONTAINER */
#ltp-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* TOAST */
.ltp-toast {
    min-width: 260px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#ltp-toast-container svg {
    position: relative;
    color: #ffF;
    top: 2px;
}

    /* TIPOS */
    .ltp-toast.success {
        background: linear-gradient(135deg, #28a745, #34d058);
    }

    .ltp-toast.error {
        background: linear-gradient(135deg, #dc3545, #ff4d5a);
    }

/* INPUT STATES */
input.success {
    border: 2px solid #28a745 !important;
    background-color: #f3fff6;
}

input.error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
}

/* ANIMACIONES */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ltp-back {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .ltp-back:hover {
        color: #e6004c;
        transform: translateX(-2px);
    }

/* MODAL */
.ltp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    
    display: none;
    z-index: 99999;
    
    align-items: center;
    justify-content: center;
}

    .ltp-modal.show {
        display: flex;
    }

.ltp-modal-content {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /* animación */
    animation: modalFadeIn 0.25s ease;
}

    .ltp-modal-content h3 {
        margin: 0px;
        font-size: 24px;
    }

    .ltp-modal-content p {
        margin: 10px 0px 30px;
        font-size: 15px;
    }

    .ltp-modal-content ul {
        padding-left: 18px;
        padding-right: 5px;
        font-size: 15px;
        line-height: 21px;
    }

.ltp-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

    .ltp-modal-actions button {
        padding: 10px 16px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 500;
    }

#btnUnderstood {
    background: #f1f1f1;
}

#btnCreatePassword {
    background: #E40946;
    color: #fff;
}

/* animación */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* NUEVO: layout interno */
.ltp-modal-body {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* texto */
.ltp-modal-text {
    flex: 1;
}

/* svg */
.ltp-modal-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
}

    /* opcional: tamaño del svg */
    .ltp-modal-graphic svg {
        max-width: 220px;
        height: auto;
    }

/* responsive */
@media (max-width: 600px) {
    .ltp-modal-body {
        flex-direction: column;
        text-align: center;
    }

    .ltp-modal-actions {
        justify-content: center;
    }
}