* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Century Gothic', sans-serif;
}

:root {
    --accent-dark: #1e3a23;
    --accent: #2f4f2e;
    --panel: #ceddc6;
    --muted: #f7f7f7;
}

body {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------------- BAR → SUPERIOR ---------------- */
.barra-superior {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.titulo-barra {
    font-size: 1.5em;
    font-weight: bold;
}

.btn-regresar {
    background-color: #ffffff;
    color: #007bff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn-regresar:hover {
    background-color: #e2e6ea;
    color: #0056b3;
}

/* ---------------- LAYOUT PRINCIPAL ---------------- */
.contenedor {
    display: flex;
    width: 100%;
    height: calc(100vh - 64px);
    margin-top: 64px;
}

/* IZQUIERDA */
.izquierda {
    width: 62%;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.contenido-izquierda h1 {
    font-size: 3rem;
    color: var(--accent-dark);
    line-height: 1.05;
    max-width: 820px;
    margin: 0 auto;
    font-weight: 600;
}

.iconos {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 10px;
}

.iconos img {
    width: 96px;
    height: 96px;
}

/* DERECHA */
.derecha {
    width: 38%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
}

.formulario {
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 140px);
    background-color: var(--panel);
    border: 3px solid var(--accent);
    padding: 28px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px auto;
    display: block;
}

label {
    font-size: 1.05rem;
    color: var(--accent-dark);
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #7f7f7f;
    background-color: #f2f2f2;
    font-size: 1rem;
}

.mostrar {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn {
    width: 100%;
    background-color: #1186f8;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background-color: #0c67c3;
    transform: scale(1.02);
}

.registro-texto {
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--accent-dark);
}

.registro-link {
    font-weight: bold;
    color: #0c67c3;
    text-decoration: none;
}

.registro-link:hover {
    text-decoration: underline;
    color: #084a8f;
}


/* --- Tablets horizontales (≤ 1200px) --- */
@media (max-width: 1200px) {
    .contenido-izquierda h1 {
        font-size: 2.5rem;
    }
    .iconos img {
        width: 80px;
        height: 80px;
    }
}

/* --- Tablets (≤ 992px) --- */
@media (max-width: 992px) {
    .contenedor {
        flex-direction: column;
        height: auto;
        margin-top: 20px;
    }

    .izquierda,
    .derecha {
        width: 100%;
        padding: 30px;
    }

    .contenido-izquierda h1 {
        font-size: 2.2rem;
    }

    .iconos img {
        width: 70px;
        height: 70px;
    }
}

/* --- Móviles grandes (≤ 768px) --- */
@media (max-width: 768px) {
    .barra-superior {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .izquierda {
        padding: 20px;
    }

    .contenido-izquierda h1 {
        font-size: 1.8rem;
    }

    .iconos {
        flex-wrap: wrap;
        gap: 20px;
    }

    .derecha {
        padding: 20px;
    }

    .formulario {
        max-width: 90%;
        padding: 22px;
    }
}

/* --- Móviles pequeños (≤ 480px) --- */
@media (max-width: 480px) {
    .contenido-izquierda h1 {
        font-size: 1.6rem;
    }

    .iconos img {
        width: 60px;
        height: 60px;
    }

    .formulario {
        padding: 18px;
    }

    .btn {
        font-size: 1rem;
        padding: 12px;
    }
}

