﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo gris claro */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #e5e7eb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}



/* Contenedor principal tipo tarjeta grande */
.login-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    min-height: 700px;
}

/* PANEL IZQUIERDO */
.left-panel {
    flex: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)), url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=800&q=80') center/cover;
    padding: 48px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    position: relative;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
/*.brand-icon {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
*/

    .brand-icon img {
        width: 90px;
        height: 90px;
        object-fit: contain;
    }

.brand-name {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.testimonial-section {
    margin-top: auto;
    padding-top: 40px;
}

.testimonial-quote {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.testimonial-author {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.testimonial-role {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 400;
}

/* PANEL DERECHO */
.right-panel {
    flex: 1;
    padding: 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

/* Cabecera bienvenida */
.welcome-section {
    text-align: center;
    margin-bottom: 48px;
}

.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    font-weight: 400;
}

/* FORMULARIO */
.login-form {
    width: 100%;
    max-width: 380px; /* form más angosto como en el diseño */
    margin: 0 auto;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
}

/* Inputs idénticos al diseño de la segunda imagen */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px !important;
    font-size: 15px;
    transition: all 0.25s ease;
    outline: none;
    background: #ffffff;
    color: #111827 !important;
    font-family: 'Inter', sans-serif;
}

    .input-field::placeholder {
        color: #9ca3af;
    }

    .input-field:focus {
        border-color: #7c3aed;
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }

/* Mensajes de validación */
.validation-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* Resumen de validación (si hay errores) */
.validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    color: #dc2626;
}

/* FORGOT PASSWORD */
.forgot-link {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 24px;
}

    .forgot-link a {
        color: #7c3aed;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.2s;
    }

        .forgot-link a:hover {
            color: #6d28d9;
        }

/* REMEMBER ME + TOGGLE */
.remember-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.remember-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.toggle-wrapper {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #7c3aed;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

    .toggle-switch::after {
        content: '';
        position: absolute;
        top: 2px;
        right: 2px;
        width: 20px;
        height: 20px;
        background: #ffffff;
        border-radius: 50%;
        transition: transform 0.3s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.remember-checkbox {
    display: none;
}

    /* Estado OFF */
    .remember-checkbox:not(:checked) + .toggle-switch {
        background: #e5e7eb;
    }

        .remember-checkbox:not(:checked) + .toggle-switch::after {
            transform: translateX(-20px);
        }

/* BOTÓN LOGIN – grande y muy redondo */
.login-button {
    width: 100%;
    padding: 15px;
    background: #7c3aed;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 16px;
}

    .login-button:hover {
        background: #6d28d9;
        transform: translateY(-1px);
        box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
    }

    .login-button:active {
        transform: translateY(0);
        box-shadow: none;
    }

/* Texto "Don't have an account? Sign up" */
.signup-section {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

    .signup-section a {
        color: #7c3aed;
        font-weight: 500;
        text-decoration: none;
    }

        .signup-section a:hover {
            color: #6d28d9;
        }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .right-panel {
        padding: 60px 50px;
    }
}

@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }

    .left-panel {
        min-height: 380px;
        padding: 40px 35px;
    }

    .testimonial-quote {
        font-size: 28px;
    }

    .right-panel {
        padding: 50px 40px;
    }

    .welcome-title {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0;
    }

    .login-container {
        border-radius: 0;
        min-height: 100vh;
    }

    .left-panel {
        padding: 30px 25px;
        min-height: 320px;
    }

    .testimonial-quote {
        font-size: 24px;
    }

    .right-panel {
        padding: 40px 25px;
    }

    .welcome-title {
        font-size: 26px;
    }
}



/* MOBILE — Ajustar proporciones sin scroll y sin deformar */
@media (max-width: 576px) {

    /* Hacer más bajo el panel izquierdo */
    .left-panel {
        padding: 25px 20px;
        height: auto;
        min-height: 300px; /* antes 380px */
    }

    .testimonial-quote {
        font-size: 22px;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .testimonial-author,
    .testimonial-role {
        font-size: 13px;
    }

    /* Panel derecho más compacto */
    .right-panel {
        padding: 30px 25px;
        margin-top: -10px;          /* 🔥 sube el formulario */
    }

    .welcome-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .welcome-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    /* Inputs más compactos para reducir alto total */
    .input-field {
        padding: 10px 14px;
        font-size: 14px;
    }

    .input-label {
        font-size: 13px;
    }

    .login-button {
        padding: 12px;
        font-size: 14px;
        margin-top: 10px;
    }

    .remember-section {
        margin-bottom: 20px;
    }
}

