/* Estructura general */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: #CAB8CC;
    color: #5C2B65;
   overflow: hidden;
}

/* Contenedor general */
.wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.top-header {
    text-align: center;
    padding: 10px 10px 0;
    flex-shrink: 0;
}

.top-header h1 {
    font-size: 32px;
    margin: 0;
}

.icono-corazon {
    font-size: 40px;
    margin: 5px 0;
}

.top-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin: 0;
}

/* MAIN: formulario centrado */
.login-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.login-container {
    background-color: #CAB8CC;
    border-radius: 12px;
    padding: 20px;
    max-width: 320px;
    width: 100%;
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grupo de campos */
.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.label-row label {
    font-weight: bold;
    font-size: 16px;
}

.toggle-password {
    width: 24px;
    height: 24px;
    cursor: pointer;
    user-select: none;
}
/* Campos de entrada */
.campo-input {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: white;
    color:#5C2B65;
}

/* Botón */
button {
    padding: 10px 30px;
    background-color: #660066;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
}

/* Enlaces debajo del botón */
.extra-links {
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
	line-height: 0.8;
}

.extra-links a {
    color: #5C2B65;
    text-decoration: none;
    display: block;
    margin-top: 1px;
}

/* FOOTER */
footer {
    flex-shrink: 0;
    text-align: center;
    padding: 10px 0;
    background-color: #CAB8CC;
}

footer img {
    width: 100px;
    max-width: 80%;
}

/* Responsive */
@media (max-width: 480px) {
    .top-header h1 {
        font-size: 28px;
    }

    .top-header h2 {
        font-size: 20px;
    }

    .icono-corazon {
        font-size: 36px;
    }

    .campo-input,
    button {
        font-size: 18px;
    }

    .label-row label,
    .extra-links {
        font-size: 16px;
    }
}