/* VARIABLES DE COLOR (Estilo Light & Money Green) */
:root {
    --bg-body: #eaeff2;
    --bg-container: #ffffff;
    --color-primary: #118C4F;
    --color-primary-hover: #0b6b3b;
    --text-main: #333333;
    --text-muted: #64748b;
    --input-bg: #f8f9fa;
    --input-border: #e2e8f0;
}

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

body {
    background-color: var(--bg-body);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    color: var(--text-main);
}

/* CONTENEDOR MÓVIL */
.app-container {
    width: 100%;
    max-width: 450px;
    background-color: var(--bg-container);
    min-height: 90vh;
    overflow: hidden;
    position: relative;
    padding-top: 30px;
    padding-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* SELECTOR DE PESTAÑAS (TABS SUPERIORES) */
.register-tabs {
    display: flex;
    background-color: var(--bg-container);
    margin: 0 15px 25px 15px;
    border-radius: 8px;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--input-border);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 4px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* 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: var(--text-main);
    font-weight: 600;
}

/* ENVOLTORIO DE LOS CAMPOS */
.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    position: relative;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--color-primary);
}

/* Franja decorativa verde en el extremo izquierdo */
.input-wrapper.green-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--color-primary);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    width: 75%;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 500;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

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

.eye-icon {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

.eye-icon:hover {
    color: var(--color-primary);
}

/* 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: #cbd5e1; /* Gris claro por defecto */
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.password-strength-meter .bar.active-green {
    background-color: var(--color-primary); /* Verde activo */
}

/* DISEÑO DE CAPTCHA */
.captcha-container {
    padding-right: 4px; 
}

.captcha-img-box {
    background-color: #ffffff;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--input-border);
}

.captcha-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 2px;
}

/* BOTÓN INSCRIBIRSE */
.submit-register-btn {
    width: 100%;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(17, 140, 79, 0.2);
    transition: background-color 0.3s ease;
}

.submit-register-btn:hover {
    background-color: var(--color-primary-hover);
}

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

.login-link {
    color: var(--color-primary);
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}

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

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

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}