body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #004080, #0077aa);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: start;
    min-height: 100vh; /* Cambiar de height a min-height */
    box-sizing: border-box;
}

.form-container {
    background: #022c43;
    padding: 20px 30px 5px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box; /* Evita desbordamientos */
    margin: 20px 0; /* Asegura separación del contenido en pantallas pequeñas */
}

.form-container h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

form p {
    font-size: 17px;
    margin-top: 10px;
}

form p a {
    text-decoration: none;
    color: #0099cc;
    font-size: 17.5px;
}

/* carrusel perfil*/
/* control del circulo */
.carousel-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 10px auto;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    border-radius: 100%;
    width: 100%;
    height: 50%;
    object-fit: cover;
}

/* Estilos para los botones de navegación */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.image-option {
    display: inline-block;
    margin: 0px; /* Reducimos el margen */
    cursor: pointer;
}

.image-option img {
    width: 60px; /* Tamaño reducido */
    height: 60px; /* Tamaño reducido */
    border: 2px solid transparent;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
}

.image-option.selected img {
    border-color: blue;
    transform: scale(1.1); /* Efecto al seleccionar */
}

/* fin */

label {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    color: #9bc1dc;
    font-weight: bold;
}
.label-img{
width: 105px;
margin: 0 auto;
border-radius: 50px;
cursor: pointer;}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #0077aa;
    border-radius: 8px;
    background: #f8f8f8;
    color: #333;
    font-size: 1rem;
    box-sizing: border-box;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50px;
    left: 0;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0077aa;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: bold;
}

button {
    width: 100%;
    padding: 12px;
    background: #0099cc;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 20px;
}
button:is(.next-btn, .prev-btn){
    width: auto;
}

.toggle-password:hover {
    background: #0077aa;
    color: #004080;
}

.message {
    font-size: 1rem;
    margin-top: 15px;
}

.file-input {
    display: none;
}

.image-upload {
    position: relative;
    margin-bottom: 20px;
}

.image-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f8f8f8;
    border: 2px dashed #0077aa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0 auto 20px;
    text-align: center;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#registerButton {margin-top: 30px;}
#registerButton:hover{background-color:#0077aa;}

/* Ajustes para dispositivos móviles */
@media (max-width: 577px) {
    .form-container {
        width: 90%; /* Se ajusta el ancho para pantallas más pequeñas */
    }

    input {
        margin-bottom: 20px;
    }
    .toggle-password:hover{background-color: inherit;
    color: #0077aa;}
    #registerButton {background-color: #0099cc;}

}

/* Para asegurar el desplazamiento en modo horizontal */
html, body {
    overflow-x: hidden; /* Evitar que elementos se salgan horizontalmente */
}
