/**
 * SMLEGIS - Login & Register Styles
 * Diseño moderno, claro y legible
 */

/* ========== VARIABLES CSS ========== */
:root {
  --lime: #becd00;
  --lime-light: #d9eb37;
  --lime-dark: #a4b100;
  --lime-bg: #fbffe6;
  
  --gray-900: #1f2937;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #6b7280;
  --gray-500: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  
  --danger: #dc2626;
  --success: #16a34a;
  
  --radius: 10px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ========== HEADER - LOGO ARREGLADO ========== */
#header {
  background: #ffffff;
  border-bottom: 3px solid var(--lime);
  box-shadow: var(--shadow-sm);
  padding: 12px 32px;
  height: 80px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

#logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}

#logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 8px 0;
}

#logo img {
  height: 60px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  margin-top: -20px;
}

.logo-text {
  background: var(--lime);
  color: #111;
  font-size: 20px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

#extr-page-header-space {
  display: flex;
  align-items: center;
  gap: 12px;
}

#extr-page-header-space .hidden-mobile {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 14px;
}

#extr-page-header-space .btn {
  background: var(--lime);
  color: #111;
  border: 1px solid var(--lime-dark);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#extr-page-header-space .btn:hover {
  background: var(--lime-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ========== MAIN CONTENT ========== */
#main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

#content {
  width: 100%;
  max-width: 1100px;
}

/* ========== LANDING WRAP ========== */
.landing-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 992px) {
  .landing-wrap {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ========== CARD ========== */
.card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 30px -5px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ========== INFO CARD ========== */
.info-hero {
  padding: 24px 30px 14px;
  background: linear-gradient(135deg, var(--lime-bg) 0%, #ffffff 100%);
  border-bottom: 2px solid var(--lime);
}

.info-hero h2 {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--gray-900);
  letter-spacing: 0.3px;
}

.info-hero p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 14px;
}

.info-body {
  padding: 20px 30px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.feature:last-child {
  border-bottom: none;
}

.feature i {
  font-size: 22px;
  width: 34px;
  text-align: center;
  color: var(--lime-dark);
  flex-shrink: 0;
}

.feature div {
  flex: 1;
}

.feature b {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--gray-900);
  font-size: 14px;
}

.feature span {
  display: block;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 10px;
}

.stat {
  text-align: center;
  padding: 14px 10px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--gray-50);
  transition: all 0.2s ease;
}

.stat:hover {
  border-color: var(--lime);
  background: var(--lime-bg);
  transform: translateY(-2px);
}

.stat .num {
  font-size: 20px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.stat .label {
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-footer {
  padding: 18px 30px 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.pill {
  font-size: 11px;
  border-radius: 20px;
  padding: 7px 12px;
  border: 1px solid var(--gray-300);
  background: #ffffff;
  color: var(--gray-700);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pill:hover {
  background: var(--lime-bg);
  border-color: var(--lime);
  color: var(--gray-900);
}

.pill i {
  font-size: 13px;
}

/* ========== LOGIN/REGISTER CARD ========== */
.login-card {
  position: relative;
}

.brand-header {
  padding: 24px 30px 14px;
  text-align: center;
  background: linear-gradient(135deg, var(--lime) 0%, var(--lime-light) 100%);
  border-bottom: 2px solid var(--lime-dark);
}

.brand-header h1 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 26px;
  color: #111;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-header h4 {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  color: rgba(0,0,0,0.65);
  letter-spacing: 0.2px;
}

.well.no-padding {
  background: #ffffff;
  padding: 0;
}

/* ========== ALERT ERROR ========== */
.alert-error {
  margin: 18px 24px 0;
  border: 2px solid #fca5a5;
  background: #fee2e2;
  color: var(--danger);
  padding: 14px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

.alert-error i {
  font-size: 20px;
  flex-shrink: 0;
}

/* ========== SMART FORM - MÁS CLARO Y ENTENDIBLE ========== */
.smart-form {
  padding: 0;
}

.smart-form header {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
  padding: 18px 24px;
  font-weight: 700;
  font-size: 17px;
  color: var(--gray-900);
  letter-spacing: 0.3px;
}

.smart-form fieldset {
  padding: 24px;
  border: none;
}

.smart-form section {
  margin-bottom: 20px;
}

.smart-form .label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-800);
  letter-spacing: 0;
}

.smart-form .input,
.smart-form .select {
  position: relative;
  display: block;
  width: 100%;
}

.smart-form .input input,
.smart-form .select select {
  width: 100%;
  height: 46px;
  padding: 12px 14px 12px 42px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray-900);
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.smart-form .input input:focus,
.smart-form .select select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-bg);
  background: #ffffff;
}

.smart-form .icon-append {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--gray-500);
  pointer-events: none;
}

.smart-form .select select {
  padding-left: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.smart-form .select-multiple select {
  height: auto;
  padding: 12px 14px;
  background-image: none;
}

.smart-form .helper {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 6px;
  line-height: 1.4;
  font-style: italic;
}

/* Password Toggle */
.smart-form .input button[type="button"] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.smart-form .input button[type="button"]:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

/* Strength Indicator */
.strength {
  height: 8px;
  border-radius: 6px;
  background: var(--gray-200);
  overflow: hidden;
  margin-top: 8px;
}

.strength > div {
  height: 100%;
  width: 0;
  background: #ef4444;
  transition: all 0.3s ease;
}

.strength.medium > div {
  background: #f59e0b;
}

.strength.strong > div {
  background: var(--success);
}

/* Filter Box */
.filter-box {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.filter-box i {
  color: var(--gray-500);
  font-size: 16px;
}

.filter-box input {
  flex: 1;
  height: 36px;
  padding: 8px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  transition: all 0.2s ease;
}

.filter-box input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-bg);
}

/* Checkbox - Más grande y claro */
.smart-form .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}

.smart-form .checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 2px 0 0 0;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--lime);
}

.smart-form .checkbox i {
  display: none;
}

/* Note */
.smart-form .note {
  margin-top: 8px;
  font-size: 13px;
}

.smart-form .note a {
  color: var(--lime-dark);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.smart-form .note a:hover {
  color: var(--lime);
  text-decoration: underline;
}

/* Footer (Botones) - Más grande y claro */
.smart-form footer {
  padding: 24px;
  background: var(--gray-50);
  border-top: 2px solid var(--gray-200);
  text-align: center;
}

.smart-form footer .btn {
  width: 100%;
  max-width: 320px;
  height: 52px;
  background: var(--lime);
  color: #111;
  border: 2px solid var(--lime-dark);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.smart-form footer .btn:hover:not(:disabled) {
  background: var(--lime-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.smart-form footer .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.smart-form footer .btn i {
  font-size: 20px;
}

/* Validation States */
.smart-form .state-error .input input,
.smart-form .state-error .select select {
  border-color: var(--danger);
  background: #fef2f2;
}

.smart-form .state-success .input input,
.smart-form .state-success .select select {
  border-color: var(--success);
  background: #f0fdf4;
}

/* ========== FOOTER ========== */
.page-footer {
  background: var(--lime-dark);
  border-top: 3px solid var(--lime);
  padding: 16px 32px;
  text-align: center;
  flex-shrink: 0;
}

.page-footer .txt-color-white {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
}

/* ========== MODAL ========== */
.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
  padding: 20px 24px;
}

.modal-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--gray-900);
}

.modal-body {
  padding: 24px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  #header {
    padding: 10px 16px;
    height: 60px;
  }
  
  #logo img {
    height: 45px;
  }
  
  .logo-text {
    font-size: 16px;
    padding: 8px 14px;
  }
  
  #extr-page-header-space .hidden-mobile {
    display: none;
  }
  
  #main {
    padding: 24px 16px;
  }
  
  .landing-wrap {
    gap: 24px;
  }
  
  .info-hero,
  .info-body,
  .info-footer,
  .brand-header {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .smart-form fieldset,
  .smart-form footer {
    padding: 20px;
  }
  
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  
  .page-footer {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .brand-header h1 {
    font-size: 22px;
  }
  
  .brand-header h4 {
    font-size: 12px;
  }
  
  .feature {
    gap: 12px;
  }
  
  .feature i {
    font-size: 20px;
    width: 30px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated.fadeInDown {
  animation: fadeInDown 0.6s ease-out;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}
