﻿:root {
    --dark-bg: #1A1A1A;
    --card-bg: #282828;
    --input-bg: #3A3A3A;
    --primary-green: #4CAF50;
    --light-green: #8BC34A;
    --error-red: #E53935;
    --success-green: #43A047;
    --text-color: #E0E0E0;
    --placeholder-color: #A0A0A0;
    --border-color: #505050;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    box-sizing: border-box;
}

.container {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 1000px;
    width: 90%;
    min-height: 600px;
}

/* --- Panel Izquierdo con Slider --- */
.left-panel {
    flex: 1;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .slide.active {
        opacity: 1;
    }

    /* Capa de superposición oscura */
    .slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.6) 0%, rgba(139, 195, 74, 0.5) 100%);
        z-index: 1;
    }

.left-panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 2px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.2em;
    font-weight: 500;
}

.left-panel h2 {
    font-size: 2.2em;
    font-weight: 600;
    line-height: 1.3;
    margin-top: auto;
}

.left-panel .dots {
    display: flex;
    gap: 8px;
    margin-top: 30px;
    justify-content: center;
}

    .left-panel .dots .dot {
        width: 10px;
        height: 10px;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .left-panel .dots .dot.active {
            background-color: white;
        }

/* --- Panel Derecho con Formulario --- */
.right-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .right-panel h1 {
        font-size: 2.5em;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .right-panel .subtitle-link {
        font-size: 0.9em;
        margin-bottom: 40px;
    }

        .right-panel .subtitle-link a {
            color: var(--primary-green);
            text-decoration: none;
            font-weight: 500;
        }

            .right-panel .subtitle-link a:hover {
                text-decoration: underline;
            }

.form-group {
    margin-bottom: 25px;
    position: relative;
}

    .form-group input {
        width: calc(100% - 22px);
        padding: 14px 10px;
        background-color: var(--input-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-color);
        font-size: 1em;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        .form-group input::placeholder {
            color: var(--placeholder-color);
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-green);
            box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
        }

        /* Estilos para validación de RUT */
        .form-group input.valid {
            border-color: var(--success-green);
        }

            .form-group input.valid:focus {
                box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.4);
            }

        .form-group input.invalid {
            border-color: var(--error-red);
        }

            .form-group input.invalid:focus {
                box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.4);
            }

.button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

    .button:hover {
        background-color: var(--light-green);
        transform: translateY(-2px);
    }

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        border-radius: 0;
    }

    .left-panel {
        min-height: 280px;
    }

    .right-panel, .left-panel {
        padding: 30px;
    }

        .left-panel h2 {
            font-size: 1.8em;
        }

        .right-panel h1 {
            font-size: 2em;
        }
}
