:root {
  --login-bg-1: #04111f;
  --login-bg-2: #0a2144;
  --login-accent: #22c1ff;
  --login-accent-2: #1d4ed8;
  --login-highlight: #f59e0b;
  --login-text: #f8fafc;
  --login-muted: #bfd1ea;
  --login-panel: rgba(10, 19, 38, 0.72);
  --login-card: rgba(255, 255, 255, 0.92);
  --login-border: rgba(255, 255, 255, 0.16);
  --login-shadow: 0 25px 60px rgba(1, 7, 20, 0.45);
}

.canoas-login {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 193, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.15), transparent 24%),
    linear-gradient(135deg, rgba(4, 17, 31, 0.96), rgba(10, 33, 68, 0.92)),
    url('../img/pannel.jpg') center center / cover no-repeat;
}

.canoas-login::before,
.canoas-login::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
}

.canoas-login::before {
  width: 280px;
  height: 280px;
  left: -70px;
  top: -70px;
  background: radial-gradient(circle, rgba(34, 193, 255, 0.28), transparent 70%);
}

.canoas-login::after {
  width: 360px;
  height: 360px;
  right: -100px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.35), transparent 68%);
}

.canoas-login .left-panel,
.canoas-login .right-panel {
  position: relative;
  z-index: 2;
}

.canoas-login .left-panel {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
}

.left-panel-inner {
  width: 100%;
  max-width: 680px;
  color: var(--login-text);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #dff5ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  margin-bottom: 26px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.logo-wrap {
  width: 118px;
  height: 118px;
  min-width: 118px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.logo-wrap img,
.mini-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-copy .eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #99d9ff;
  font-weight: 700;
}

.logo-copy h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.company-tagline {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--login-muted);
  max-width: 520px;
}

.hero-copy {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 26px;
  padding: 24px 26px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(2, 7, 22, 0.22);
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 850;
  color: #ffffff;
}

.hero-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #dbe8f7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
}

.feature-item i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(34,193,255,0.75), rgba(29,78,216,0.72));
  box-shadow: 0 10px 20px rgba(1, 7, 20, 0.22);
}

.feature-item strong {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.feature-item span {
  display: block;
  color: var(--login-muted);
  font-size: 14px;
  line-height: 1.55;
}

.support-banner {
  margin-top: 28px;
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
}

.support-text small {
  display: block;
  color: #ffe7ad;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
  font-weight: 700;
}

.support-text strong {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 14px 26px rgba(10, 80, 39, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.support-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(10, 80, 39, 0.34);
}

.support-button.disabled {
  pointer-events: none;
  opacity: .6;
}

.canoas-login .right-panel {
  flex: 0.92;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-form-card {
  width: 100%;
  max-width: 460px;
  border-radius: 30px;
  background: var(--login-card);
  color: #0f172a;
  padding: 30px 30px 24px;
  box-shadow: var(--login-shadow);
  border: 1px solid rgba(255,255,255,0.5);
}

.login-brand-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.mini-logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.mini-label {
  display: inline-block;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.login-brand-mini h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.login-header {
  margin-bottom: 22px;
}

.login-header h2 {
  margin: 0 0 6px;
  font-size: 31px;
  line-height: 1.15;
  font-weight: 900;
  color: #071325;
}

.login-header p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
}

.form-group {
  position: relative;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.form-control-icon {
  position: absolute;
  left: 16px;
  bottom: 17px;
  color: #64748b;
  font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: 1px solid #d7e1ee;
  background: #f8fbff;
  box-sizing: border-box;
  padding: 0 52px 0 44px;
  color: #0f172a !important;
  font-size: 15px;
  font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-group input::placeholder {
  color: #7b8ba2;
  font-weight: 500;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(29, 78, 216, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(34, 193, 255, 0.14);
}

.password-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.password-toggle:hover {
  background: #edf4fb;
  color: #0f172a;
}

.login-help-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 18px;
}

.help-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #365070;
  background: #eef6ff;
  border: 1px solid #d4e6fb;
  padding: 9px 12px;
  border-radius: 999px;
}

.login-button {
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #22c1ff 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 16px 28px rgba(29, 78, 216, 0.26);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 32px rgba(29, 78, 216, 0.32);
  filter: saturate(1.06);
}

.login-footer-panel {
  margin-top: 22px;
}

.footer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7e7, #fffdf8);
  border: 1px solid #f6ddaa;
}

.footer-card-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 10px 16px rgba(245, 158, 11, 0.2);
}

.footer-card-copy strong {
  display: block;
  color: #7c4500;
  font-size: 14px;
  margin-bottom: 4px;
}

.footer-card-copy span {
  display: block;
  color: #8f5e18;
  font-size: 13px;
}

.verifica-sunat {
  text-align: center;
  margin-top: 18px;
}

.verifica-sunat img {
  max-width: 150px;
  opacity: .78;
}

.login-version {
  margin-top: 14px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .logo-copy h1 { font-size: 40px; }
  .hero-copy h2 { font-size: 28px; }
}

@media (max-width: 980px) {
  .canoas-login {
    flex-direction: column;
  }

  .canoas-login .left-panel {
    padding: 28px 18px 14px;
  }

  .left-panel-inner,
  .login-form-card {
    max-width: 100%;
  }

  .support-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-button {
    width: 100%;
    min-width: unset;
  }

  .canoas-login .right-panel {
    padding: 14px 14px 24px;
    width: 100%;
  }

  .logo-block {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .canoas-login .left-panel {
    padding: 18px 12px 8px;
  }

  .brand-badge {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .logo-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-bottom: 20px;
  }

  .logo-wrap {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: 24px;
  }

  .logo-copy h1 {
    font-size: 30px;
  }

  .company-tagline {
    font-size: 15px;
    margin-top: 10px;
  }

  .hero-copy {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .hero-copy h2 {
    font-size: 22px;
  }

  .hero-copy p,
  .feature-item span {
    font-size: 14px;
  }

  .feature-grid {
    gap: 12px;
    margin-top: 18px;
  }

  .feature-item {
    padding: 14px;
    border-radius: 18px;
  }

  .support-banner {
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
  }

  .support-text strong {
    font-size: 20px;
  }

  .canoas-login .right-panel {
    padding: 10px 10px 18px;
  }

  .login-form-card {
    padding: 22px 16px 18px;
    border-radius: 24px;
  }

  .mini-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .login-brand-mini h3 {
    font-size: 20px;
  }

  .login-header h2 {
    font-size: 25px;
  }

  .form-group input[type="text"],
  .form-group input[type="password"] {
    height: 54px;
    font-size: 15px;
  }

  .login-button {
    min-height: 54px;
    font-size: 14px;
  }

  .footer-card {
    padding: 14px;
  }
}
