/* ===== K-Tix Assist — Secure Portal Auth ===== */
.login-layout {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9
}

.login-side {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  border-right: 1px solid #1e293b;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.login-side .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 20px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 16px;
  text-decoration: none;
  color: #fff
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0
}

.logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25
}

.logo-text small {
  display: block;
  font-weight: 500;
  font-size: .7rem;
  color: #94a3b8
}

.side-label {
  font-size: .68rem;
  letter-spacing: .14em;
  color: #64748b;
  padding: 0 12px 8px;
  font-weight: 600;
  text-transform: uppercase
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: .2s;
  text-align: left;
  width: 100%;
  font-family: inherit
}

.side-item:hover {
  background: #ffffff10;
  color: #e2e8f0
}

.side-item.on {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .4)
}

.side-ico {
  width: 22px;
  text-align: center;
  font-size: 1.05rem
}

.side-back {
  margin-top: auto;
  padding: 12px 14px;
  color: #94a3b8;
  font-size: .85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: .2s
}

.side-back:hover {
  background: #ffffff10;
  color: #fff
}

.side-footer {
  margin-top: 12px;
  padding: 12px 10px 4px;
  font-size: .7rem;
  color: #64748b;
  line-height: 1.4;
  border-top: 1px solid #1e293b
}

.login-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  min-height: 100vh
}

.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0
}

.top-brand {
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  color: #1e293b
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid #bfdbfe
}

.view-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 40px -10px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .04);
  border: none;
  animation: up .4s ease both
}

.login-card h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  letter-spacing: -.02em
}

.login-card .sub {
  text-align: center;
  margin-bottom: 20px;
  color: #64748b;
  font-size: .9rem
}

.login-card label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #334155;
  margin: 12px 0 6px
}

.login-card .req {
  color: #ef4444
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  background: #fff;
  color: #0f172a;
  transition: .2s
}

.login-card input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .15)
}

.login-card input::placeholder {
  color: #94a3b8
}

.pw {
  position: relative
}

.pw .eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  color: #64748b;
  line-height: 1
}

.pw .eye-btn:hover {
  color: #3b82f6
}

.checks {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem !important;
  font-weight: 400 !important;
  color: #475569 !important;
  margin: 0 !important;
  cursor: pointer
}

.check-label input {
  width: auto !important;
  margin-top: 2px;
  accent-color: #2563eb
}

.check-label a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500
}

.check-label a:hover {
  text-decoration: underline
}

.err {
  color: #dc2626;
  font-size: .82rem;
  min-height: 1.2em;
  margin-top: 8px
}

.sign-btn {
  width: 100%;
  margin-top: 16px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  background: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35) !important
}

.sign-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px)
}

.sign-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none
}

.footer-links {
  text-align: center;
  margin-top: 18px;
  font-size: .9rem
}

.footer-links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500
}

.footer-links a:hover {
  text-decoration: underline
}

.footer-links .sep {
  margin: 0 6px;
  color: #94a3b8
}

.demo {
  font-size: .75rem !important;
  margin-top: 12px !important;
  text-align: center;
  color: #94a3b8 !important
}

.back-link {
  background: none;
  border: 0;
  color: #64748b;
  font-size: .85rem;
  cursor: pointer;
  margin-bottom: 8px;
  padding: 0;
  font-family: inherit
}

.back-link:hover {
  color: #2563eb
}

.steps-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 16px
}

.steps-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: .2s
}

.steps-dots .dot.on {
  background: #2563eb
}

.steps-dots .dot.done {
  background: #22c55e
}

.hint {
  font-size: .88rem;
  color: #64748b;
  margin-bottom: 16px;
  text-align: center
}

.id-card {
  max-width: 460px
}

.ok-banner {
  background: #dcfce7;
  color: #166534;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 14px
}

.id-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px
}

.id-type {
  padding: 12px 10px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: #334155;
  transition: .2s;
  font-family: inherit
}

.id-type:hover {
  border-color: #93c5fd;
  background: #f0f9ff
}

.id-type.on {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15)
}

.drop-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px
}

.drop-actions .btn {
  flex: 1
}

.drop-zone {
  border: 2px dashed #c4b5fd;
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  background: #f5f3ff;
  transition: .2s;
  margin-bottom: 14px
}

.drop-zone:hover,
.drop-zone.drag {
  background: #ede9fe;
  border-color: #7c3aed
}

.drop-ico {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px
}

.drop-zone p {
  margin: 0;
  color: #64748b;
  font-size: .9rem
}

.drop-zone small {
  color: #94a3b8
}

.file-name {
  color: #16a34a !important;
  font-weight: 600;
  margin-top: 8px !important
}

.id-result {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #bbf7d0
}

.ok-line {
  color: #16a34a;
  font-weight: 600;
  margin-bottom: 10px
}

.id-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: .85rem;
  margin-bottom: 8px
}

.privacy-note {
  font-size: .75rem;
  color: #64748b;
  margin: 0
}

.face-card {
  max-width: 440px;
  text-align: center
}

.face-preview {
  margin: 16px auto
}

.face-oval {
  width: 200px;
  height: 240px;
  margin: 0 auto;
  border: 3px dashed #a78bfa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1530;
  color: #fff;
  overflow: hidden;
  position: relative
}

.face-oval video,
.face-oval canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.face-oval.scanning {
  border-style: solid;
  border-color: #ec4899;
  animation: pulse 1s infinite
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 30px #ec4899
  }
}

.align-hint {
  display: inline-block;
  margin: 10px 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: .8rem;
  font-weight: 500
}

.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin: 8px 0
}

.progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  transition: width .15s
}

.face-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: center
}

.face-actions .btn {
  min-width: 140px
}

@media(max-width:720px) {
  .login-layout {
    flex-direction: column
  }

  .login-side {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 14px;
    border-right: none;
    border-bottom: 1px solid #1e293b
  }

  .login-side .logo {
    width: 100%;
    border-bottom: none;
    margin-bottom: 4px;
    padding-bottom: 8px
  }

  .side-label {
    width: 100%
  }

  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px
  }

  .side-item {
    flex: 1;
    min-width: 90px;
    justify-content: center;
    padding: 10px 6px;
    font-size: .78rem
  }

  .side-back,
  .side-footer {
    display: none
  }

  .login-top {
    padding: 12px 16px
  }

  .view-wrap {
    padding: 20px 12px
  }

  .login-card {
    padding: 24px 18px
  }

  .id-types {
    grid-template-columns: 1fr 1fr
  }
}