/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #5f5f5f;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    color: #ffffff;
}

/* CONTENEDOR MÓVIL (Simulador de pantalla) */
.app-container {
    width: 100%;
    max-width: 450px;
    background-color: #313131;
    min-height: 90vh;
    overflow: hidden;
    position: relative;
    padding-top: 30px;
    padding-bottom: 30px; /* Espacio para la barra inferior */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* SELECTOR DE PESTAÑAS (TABS SUPERIORES) */
.register-tabs {
    display: flex;
    background-color: #191b21;
    margin: 0 15px 25px 15px;
    border-radius: 8px;
    overflow: hidden;
    padding: 3px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #E5B330;
    padding: 12px 4px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

.tab-btn.active {
    background-color: #E5B330;
    color: #1c1c1c;
}

/* CUERPO DEL FORMULARIO */
.main-content {
    padding: 0 20px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
}

/* ENVOLTORIO DE LOS CAMPOS */
.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    position: relative;
}

/* Franja decorativa amarilla en el extremo izquierdo */
.input-wrapper.yellow-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: #fde047;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Fondos específicos de los campos */
.cream-bg { background-color: #fce8bc; }
.light-blue-bg { background-color: #e2e8f0; }

.input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    width: 75%;
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}

.input-wrapper input::placeholder {
    color: #64748b;
    font-weight: 400;
}

/* ICONOS Y COMPONENTES INTERNOS */
.field-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1c1c1c;
}

.field-icon {
    font-size: 14px;
    opacity: 0.4;
}

.eye-icon {
    opacity: 0.8;
    color: #1e293b;
    cursor: pointer;
}

/* MEDIDOR DE FUERZA DE CONTRASEÑA */
.password-strength-meter {
    display: flex;
    gap: 5px;
    margin-top: 4px;
    padding-left: 2px;
}

.password-strength-meter .bar {
    width: 30px;
    height: 4px;
    background-color: #475569; /* Gris por defecto */
    border-radius: 2px;
}

.password-strength-meter .bar.active-yellow {
    background-color: #eab308; /* Amarillo activo según captura */
}

/* DISEÑO DE CAPTCHA */
.captcha-container {
    padding-right: 4px; /* Deja espacio ajustado para el recuadro blanco */
}

.captcha-img-box {
    background-color: #ffffff;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
}

.captcha-text {
    font-size: 18px;
    font-weight: bold;
    color: #131313;
    letter-spacing: 2px;
}

/* BOTÓN INSCRIBIRSE */
.submit-register-btn {
    width: 100%;
    background-color: #E5B330;
    color: #1c1c1c;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
}

/* ENLACE INFERIOR */
.login-link-container {
    text-align: center;
}

.login-link {
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: underline;
    font-weight: 500;
}

.alert {
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    border: 1px solid transparent;
    position: relative;
}

/* Estilo específico para alerta de éxito */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #d4edda;
    color: #d01f1f;
    border-color: #c3e6cb;
}