@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600&family=Poppins:wght@400;700&display=swap');

body {
    background-color: #FFF5BA; 
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* HEADER SUPERIOR - Corregido para alinear logo y nombre */
.login-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px 5%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #A0E7E5;
    z-index: 1000;
}

.logo-container-header {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre logo y texto */
}

.mini-logo {
    width: 35px;
    height: auto;
}

.login-header h1 {
    font-family: 'Fredoka', sans-serif;
    color: #CBA6F7;
    font-size: 1.4rem;
    margin: 0;
}

/* CONTENEDOR DE LOGIN */
.registro-container {
    background-color: #FFFFFF;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 10px 10px 0px #CBA6F7; 
    border: 3px solid #333;
    width: 350px;
    text-align: center;
    position: relative;
    margin-top: 60px; /* Espacio para no chocar con el header fijo */
}

/* BOTÓN VOLVER (FLECHA PEQUEÑA) */
.back-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
}

.arrow-icon {
    width: 22px; /* Flecha pequeña */
    height: auto;
    margin-right: 8px;
}

.btn-back:hover {
    transform: translateX(-5px);
    color: #CBA6F7;
}

h2 {
    font-family: 'Fredoka', sans-serif;
    color: #CBA6F7;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 2px solid #FFB6C1; 
    border-radius: 10px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

input:focus {
    border-color: #A0E7E5;
}

button {
    background-color: #CBA6F7;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

button:hover {
    background-color: #FFB6C1;
    transform: translateY(-3px);
}

.footer-login {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

.link-highlight {
    color: #CBA6F7;
    text-decoration: none;
    font-weight: bold;
}

.link-highlight:hover {
    text-decoration: underline;
}

/* Igualar tamaño de campos de contraseña con los demás inputs */
.pass-field {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.pass-field input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 44px !important;
    margin: 12px 0 !important;
}

/* Sobrescribir estilos generales de button para el botón Ver/Ocultar */
.pass-field .btn-toggle-pass {
    width: 30px !important;
    height: 30px !important;
    min-width: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    color: #CBA6F7 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
}
.pass-field .btn-toggle-pass:hover {
    opacity: 1 !important;
    background: #f0e7ff !important;
    transform: translateY(-50%) !important;
}

/* Igualar altura de todos los inputs incluyendo los de pass-field */
input {
    height: 48px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
}
.pass-field input {
    height: 48px !important;
    padding: 0 44px 0 14px !important;
    box-sizing: border-box !important;
    margin: 12px 0 !important;
}