/* 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-bottom: 80px; /* Espacio para la barra inferior */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* HERO BANNER SUPERIOR */
.login-hero {
    width: 100%;
    height: 220px;
    background: linear-gradient(rgb(47 50 56 / 60%), rgb(22 25 30 / 85%)), 
                url('https://images.unsplash.com/photo-1526304640581-d334cdbbf45e?q=80&w=600') 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(35, 50, 83, 0.8);
    border: 1px solid #506694;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
}

.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.2);
    margin-bottom: 10px;
}

.brand-logo-circle .logo-icon {
    font-size: 38px;
    color: #eab308;
}

.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: #191b21;
    margin: -15px 15px 25px 15px; /* Sube ligeramente para superponerse al banner */
    position: relative;
    z-index: 10;
    border-radius: 8px;
    overflow: hidden;
    padding: 3px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #E5B330;
    padding: 12px 6px;
    font-size: 12px;
    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;
}

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

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

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

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

/* Borde izquierdo color crema/amarillo sutil */
.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;
}

/* Variaciones de color de fondo según captura */
.cream-bg { background-color: #fce8bc; }
.light-blue-bg { background-color: #e2e8f0; }

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

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

/* BOTÓN INICIAR SESIÓN */
.submit-login-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;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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