/* ========================= */
/* PALETA DE COLORES */
/* ========================= */

:root {

    /* ========================= */
    /* COLORES PRINCIPALES */
    /* ========================= */

    --primary: #DC2626;        /* Rojo principal elegante */
    --primary-dark: #B91C1C;   /* Rojo más profundo */
    --secondary: #EF4444;      /* Rojo más brillante para degradados */

    /* ========================= */
    /* FONDOS */
    /* ========================= */

    --bg-body-start: #FFE5E5;  /* Rojo muy suave */
    --bg-body-end: #FFD1D1;    /* Rosado pastel */
    --bg-input: #FFF1F1;       /* Inputs suaves */
    --bg-card: #FFFFFF;        /* Tarjeta blanca */

    /* ========================= */
    /* TEXTOS */
    /* ========================= */

    --text-dark: #3F1D1D;      /* Marrón rojizo oscuro */
    --text-light: #7F1D1D;     /* Rojo oscuro suave */
    --text-white: #FFFFFF;

    /* ========================= */
    /* SOMBRAS */
    /* ========================= */

    --shadow-main: rgba(220, 38, 38, 0.15);
    --shadow-button: rgba(220, 38, 38, 0.35);

}

/* ========================= */
/* RESET */
/* ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* ========================= */
/* BODY */
/* ========================= */

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg,
            var(--bg-body-start),
            var(--bg-body-end));
}

/* ========================= */
/* CONTENEDOR PRINCIPAL */
/* ========================= */

.container {
    width: 900px;
    height: 500px;
    background: var(--bg-card);
    border-radius: 20px;
    display: flex;
    box-shadow: 0 20px 50px var(--shadow-main);
    overflow: hidden;
}

/* ========================= */
/* SECCIÓN FORMULARIO */
/* ========================= */

.form-section {
    width: 50%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-section h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ========================= */
/* INPUTS */
/* ========================= */

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 14px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 30px;
    border: none;
    background: var(--bg-input);
    outline: none;
    font-size: 14px;
    transition: 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.3);
}

/* ========================= */
/* BOTÓN */
/* ========================= */

button {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg,
            var(--primary),
            var(--secondary));
    color: var(--text-white);
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-button);
}

/* ========================= */
/* SECCIÓN DERECHA */
/* ========================= */

.welcome-section {
    width: 50%;
    background: linear-gradient(135deg,
            var(--primary),
            var(--secondary));
    color: var(--text-white);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.welcome-section p {
    line-height: 1.6;
    font-size: 15px;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {

    .container {
        flex-direction: column;
        width: 90%;
        height: auto;
    }

    .form-section,
    .welcome-section {
        width: 100%;
        padding: 40px;
    }

}