/* VARIABLES DE COLOR (Nuevo estilo Light & Money Green) */
:root {
    --bg-body: #eaeff2;        /* Gris muy claro para el fondo exterior */
    --bg-container: #ffffff;   /* Blanco puro para la app */
    --color-primary: #118C4F;  /* Verde Money principal */
    --color-primary-hover: #0b6b3b; /* Verde más oscuro para hover */
    --text-main: #333333;      /* Texto principal oscuro */
    --text-muted: #64748b;     /* Texto secundario/labels */
    --input-bg: #f8f9fa;       /* Fondo de inputs */
    --input-border: #e2e8f0;   /* Borde sutil */
}

/* 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-bottom: 80px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sombra más suave y limpia */
}

/* HERO BANNER SUPERIOR */
.login-hero {
    width: 100%;
    height: 220px;
    /* Un overlay verde sobre la imagen de fondo */
    background: linear-gradient(rgba(17, 140, 79, 0.8), rgba(11, 107, 59, 0.9)), 
                url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?q=80&w=800&auto=format&fit=crop') center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-hero .lang-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.brand-logo-circle {
    width: 75px;
    height: 75px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-bottom: 10px;
}

.brand-logo-circle .logo-icon {
    font-size: 38px;
    color: var(--color-primary);
}

.brand-name {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* SELECTOR DE PESTAÑAS (TABS) */
.login-tabs {
    display: flex;
    background-color: var(--bg-container);
    margin: -15px 15px 25px 15px;
    position: relative;
    z-index: 10;
    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 6px;
    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;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.input-label {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
}

/* ENVOLTORIO DE 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);
}

/* Borde izquierdo color verde */
.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: 85%;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 500;
}

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

.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);
}

/* BOTÓN INICIAR SESIÓN */
.submit-login-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-login-btn:hover {
    background-color: var(--color-primary-hover);
}

/* ENLACE REGISTRO INFERIOR */
.register-link-container {
    text-align: center;
    margin-top: 10px;
}

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

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

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

/* ALERTAS CORREGIDAS PARA MODO CLARO */
.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

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