:root {
    --primary-color: #7d57c1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    display: grid;
    place-items: center;
    min-height: 100vh;
    background-image: url('/img/fondoRegistro.jpg');
    background-repeat: no-repeat;
    background-size: cover; /* Asegura que la imagen cubra toda la pantalla */
    background-position: center; /* Centra la imagen en la pantalla */
}

/* Global Stylings */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

input, select {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
}

.width-50 {
    width: 50%;
}

.ml-auto {
    margin-left: auto;
}

.text-center {
    color: rgb(255, 255, 255);
    text-align: center;
}

/* Progressbar */
.progressbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    counter-reset: step;
    margin: 2rem 0 4rem;
}

.progressbar::before,
.progress {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #dcdcdc;
    z-index: -1;
}

.progress {
    background-color: var(--primary-color);
    width: 0%;
    transition: 0.3s;
}

.progress-step {
    width: 2.1875rem;
    height: 2.1875rem;
    background-color: #dcdcdc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-step::before {
    counter-increment: step;
    content: counter(step);
}

.progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 0.5rem);
    font-size: 0.85rem;
    color: #666;
}

.progress-step-active {
    background-color: var(--primary-color);
    color: #f3f3f3;
}

/* Form */
.form {
    font-family: "Poppins", sans-serif;
    width: clamp(320px, 30%, 430px);
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 0.35rem;
    padding: 1.5rem;
    background-color: rgba(196, 196, 196, 0.448); /* Fondo semi-transparente para resaltar el desenfoque */
    backdrop-filter: blur(15px); /* Aplica el desenfoque */
    -webkit-backdrop-filter: blur(15px); /* Soporte para Safari */
    margin-top: 35px;
    margin-bottom: 35px;
}

.form-step {
    display: none;
    transform-origin: top;
    animation: animate 0.5s;
}

.form-step-active {
    display: block;
}

.input-group {
    margin: 2rem 0;
}

@keyframes animate {
    from {
        transform: scale(1, 0);
        opacity: 0;
    }
    to {
        transform: scale(1, 1);
        opacity: 1;
    }
}

/* Button */
.btns-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.btn {
    padding: 0.75rem;
    display: block;
    text-decoration: none;
    background-color: var(--primary-color);
    color: #f3f3f3;
    text-align: center;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: 0.3s;
}
.btn:hover {
    background: rgb(146,48,255);
    background: linear-gradient(90deg, rgba(146,48,255,1) 0%, rgba(35,232,255,1) 100%);
    transition: 0.5s;
}

.input-error {
    border: 2px solid #ffda33;
}

.error-text {
    color:#ffda33;
    font-size: 12px;
    margin-top: 5px;
}

#password-strength {
    margin-top: 10px;
}

#strength-bar {
    height: 10px;
    width: 100%;
    background-color: #e0e0e0;
    margin-bottom: 5px;
    border-radius: 3px;
    overflow: hidden;
}

#strength-bar span {
    display: block;
    height: 100%;
}

#strength-text {
    font-size: 14px;
    font-weight: bold;
}

/* Estilo de enlace "Inicio" */
.inicio-button {
    position: fixed;
    top: 20px; /* Más cercano a la parte superior */
    left: 15px; /* Más cercano a la izquierda */
    color: white;
    font-size: 16px;
    text-decoration: none;
    background: none;
    padding: 5px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.inicio-button i {
    margin-right: 5px; /* Espacio pequeño entre el ícono y el texto */
}

.inicio-button:hover {
    color: #23e8ff; /* Azul más oscuro en hover */
    text-decoration: underline; /* Subrayado al hacer hover */
}

/* Responsividad para móviles */
@media (max-width: 480px) {
    .inicio-button {
        font-size: 14px;
        top: 5px; /* Más cercano en móviles */
        left: 5px; /* Más cercano en móviles */
    }
}

/* Estilos para el checkbox y su etiqueta */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre el checkbox y el texto */
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0; /* Elimina el margen predeterminado */
    cursor: pointer;
}

.checkbox-group label {
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-group label a {
    color: #35e8ff; /* Color del enlace */
    text-decoration: underline;
}

.checkbox-group label a:hover {
    color: #7d57c1; /* Color al pasar el ratón */
    transition: color 0.3s;
}

.input-error {
    border: 1px solid red;
}

.error-text {
    color: red;
    font-size: 0.8rem;
    margin-top: 5px; /* Espacio entre el checkbox y el mensaje de error */
    display: block;  /* Asegura que el texto aparezca debajo */
}
