@import url('/assets/tk-login-arrival.css?v=20261022-portal1');
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* Enforce deep immersive dark theme variables */
    :root {
      --app-bg: #010206 !important;
      --card-bg: #070a13 !important;
      --input-bg: #0c1020 !important;
      --accent: #1b6bf5 !important;
      --accent-dark: #104eb0 !important;
      --text-main: #f8fafc !important;
      --text-muted: #64748b !important;
      --text-label: #475569 !important;
      --border-color: rgba(255, 255, 255, 0.05) !important;
    }

    html {
      width: 100% !important;
      height: auto !important;
      min-height: 100% !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      scroll-behavior: smooth !important;
      background: #010206 !important;
      background-color: #010206 !important;
    }

    body {
      font-family: 'Inter', sans-serif !important;
      background: #010206 !important;
      background-color: #010206 !important;
      width: 100% !important;
      min-height: 100vh !important;
      color: #f8fafc !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      display: flex !important;
      flex-direction: column !important;
    }

    /* Webkit Autofill Override */
    input:-webkit-autofill,
    input:-webkit-autofill:hover, 
    input:-webkit-autofill:focus, 
    input:-webkit-autofill:active {
      -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
      -webkit-text-fill-color: var(--text-main) !important;
      caret-color: var(--text-main) !important;
      transition: background-color 5000s ease-in-out 0s;
    }

    .landing-wrapper {
      position: relative !important;
      width: 100% !important;
      min-height: 100vh !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      padding: clamp(24px, 4vh, 40px) clamp(16px, 4vw, 40px) !important;
      z-index: 10 !important;
      box-sizing: border-box !important;
      background: transparent !important;
    }

    .bg-elements {
      position: fixed !important;
      inset: 0 !important;
      pointer-events: none !important;
      z-index: 1 !important;
      overflow: hidden !important;
      background: #010206 !important;
    }

    .diagonal-trails-svg {
      position: absolute !important;
      bottom: -100px !important;
      right: -100px !important;
      width: 120% !important;
      height: 120% !important;
      opacity: 0.9 !important;
    }

    .portal-space-nebula {
      position: absolute !important;
      inset: 0 !important;
      pointer-events: none !important;
      mix-blend-mode: screen !important;
      opacity: 0.95 !important;
    }
    .nebula-cloud {
      position: absolute !important;
      border-radius: 50% !important;
      filter: blur(90px) !important;
      transform: translateZ(0) !important;
    }
    .nebula-blue {
      bottom: -100px !important;
      left: -100px !important;
      width: 600px !important;
      height: 350px !important;
      background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(29, 78, 216, 0.05) 60%, transparent 100%) !important;
    }
    .nebula-purple {
      bottom: -150px !important;
      left: 35% !important;
      width: 600px !important;
      height: 400px !important;
      background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(109, 40, 217, 0.05) 60%, transparent 100%) !important;
    }
    .nebula-magenta {
      bottom: -120px !important;
      right: -50px !important;
      width: 500px !important;
      height: 350px !important;
      background: radial-gradient(circle, rgba(219, 39, 119, 0.25) 0%, rgba(190, 24, 74, 0.03) 60%, transparent 100%) !important;
    }
    .nebula-cyan {
      bottom: -50px !important;
      left: 15% !important;
      width: 450px !important;
      height: 300px !important;
      background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(8, 145, 178, 0.03) 60%, transparent 100%) !important;
    }

    .status-badge {
      display: inline-flex !important;
      align-items: center !important;
      gap: 5px !important;
      font-size: 10px !important;
      font-weight: 800 !important;
      color: #10b981 !important;
      background: rgba(16, 185, 129, 0.06) !important;
      border: 1px solid rgba(16, 185, 129, 0.15) !important;
      padding: 3px 10px !important;
      border-radius: 99px !important;
      text-transform: uppercase !important;
    }

    .status-badge-dot {
      width: 6px !important;
      height: 6px !important;
      border-radius: 50% !important;
      background: #10b981 !important;
      box-shadow: 0 0 6px #10b981 !important;
    }

    .designer-credit {
      font-size: 11px !important;
      font-weight: 600 !important;
      color: #475569 !important;
    }

    .designer-credit .name {
      color: #3b82f6 !important;
      font-weight: 700 !important;
    }

    .hybrid-badge {
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      font-size: 10px !important;
      font-weight: 800 !important;
      color: #10b981 !important;
      background: rgba(16, 185, 129, 0.05) !important;
      border: 1px solid rgba(16, 185, 129, 0.15) !important;
      padding: 6px 14px !important;
      border-radius: 99px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.04em !important;
    }

    .header-btn {
      width: 36px !important;
      height: 36px !important;
      border-radius: 50% !important;
      background: rgba(255, 255, 255, 0.02) !important;
      border: 1px solid rgba(255, 255, 255, 0.06) !important;
      color: #94a3b8 !important;
      font-size: 13px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
    }

    .header-btn:hover {
      background: rgba(255, 255, 255, 0.06) !important;
      color: #ffffff !important;
      border-color: rgba(255, 255, 255, 0.12) !important;
    }

    .hero-section {
      text-align: center !important;
      max-width: 800px !important;
      margin: 0 auto 36px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
    }

    .hero-title {
      font-size: clamp(2.4rem, 5.5vw, 4.4rem) !important;
      font-weight: 900 !important;
      letter-spacing: -0.02em !important;
      line-height: 1.15 !important;
      margin-bottom: 12px !important;
      color: #ffffff !important;
    }

    .hero-title span.tala {
      color: #38bdf8 !important;
      background: linear-gradient(135deg, #38bdf8, #0ea5e9) !important;
      -webkit-background-clip: text !important;
      -webkit-text-fill-color: transparent !important;
    }

    .hero-title span.klasi {
      color: #f97316 !important;
      background: linear-gradient(135deg, #f97316, #f59e0b) !important;
      -webkit-background-clip: text !important;
      -webkit-text-fill-color: transparent !important;
    }

    .hero-sub {
      font-size: clamp(10px, 1.8vw, 10px) !important;
      color: #94a3b8 !important;
      font-weight: 500 !important;
      line-height: 1.5 !important;
      max-width: 600px !important;
      margin-bottom: 16px !important;
    }

    .color-dashes {
      display: inline-flex !important;
      gap: 6px !important;
      margin-bottom: clamp(24px, 4vh, 32px) !important;
    }

    .dash {
      width: 16px !important;
      height: 3px !important;
      border-radius: 2px !important;
    }

    .dash.blue { background-color: #2563eb !important; }
    .dash.teal { background-color: #06b6d4 !important; }
    .dash.green { background-color: #10b981 !important; }
    .dash.orange { background-color: #f59e0b !important; }

    .portal-select-divider {
      width: 100% !important;
      max-width: 600px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 12px !important;
      margin-bottom: 36px !important;
    }

    .glowing-line {
      flex: 1 !important;
      height: 1px !important;
    }

    .glowing-line.left {
      background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4)) !important;
    }

    .glowing-line.right {
      background: linear-gradient(90deg, rgba(16, 185, 129, 0.4), transparent) !important;
    }

    .glowing-dot {
      width: 4px !important;
      height: 4px !important;
      border-radius: 50% !important;
    }

    .glowing-dot.blue {
      background-color: #3b82f6 !important;
      box-shadow: 0 0 8px #3b82f6 !important;
    }

    .glowing-dot.green {
      background-color: #10b981 !important;
      box-shadow: 0 0 8px #10b981 !important;
    }

    .divider-text {
      font-size: 10px !important;
      font-weight: 800 !important;
      color: #94a3b8 !important;
      letter-spacing: 0.1em !important;
      white-space: nowrap !important;
    }

    .portals-grid {
      display: grid !important;
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 24px !important;
      width: 100% !important;
      max-width: 1140px !important;
      margin-bottom: clamp(32px, 5vh, 48px) !important;
    }

    .portal-card {
      background: rgba(7, 10, 19, 0.6) !important;
      backdrop-filter: blur(14px) !important;
      -webkit-backdrop-filter: blur(14px) !important;
      border-radius: 24px !important;
      padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px) !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
      position: relative !important;
      overflow: hidden !important;
      border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .portal-card::before {
      content: '' !important;
      position: absolute !important;
      inset: 0 !important;
      border-radius: 24px !important;
      padding: 1px !important;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent) !important;
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
      -webkit-mask-composite: xor !important;
      mask-composite: exclude !important;
      pointer-events: none !important;
      transition: all 0.3s !important;
    }

    .portal-card:hover {
      transform: translateY(-5px) !important;
      background: rgba(7, 10, 19, 0.8) !important;
    }

    .portal-icon-wrap {
      width: 72px !important;
      height: 72px !important;
      border-radius: 50% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 24px !important;
      margin-bottom: 24px !important;
      position: relative !important;
      transition: all 0.3s !important;
    }

    .portal-icon-wrap::after {
      content: '' !important;
      position: absolute !important;
      inset: -4px !important;
      border-radius: 50% !important;
      border: 1px dashed transparent !important;
      opacity: 0.5 !important;
      transition: all 0.3s !important;
    }

    .portal-card:hover .portal-icon-wrap::after {
      transform: rotate(45deg) !important;
    }

    .portal-title {
      font-size: clamp(18px, 2.5vw, 20px) !important;
      font-weight: 800 !important;
      margin-bottom: 12px !important;
    }

    .portal-desc {
      font-size: 13px !important;
      color: #94a3b8 !important;
      line-height: 1.6 !important;
      font-weight: 500 !important;
      margin-bottom: clamp(24px, 4vh, 32px) !important;
      flex-grow: 1 !important;
    }

    .portal-btn {
      width: 100% !important;
      padding: 12px 20px !important;
      border-radius: 12px !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      text-decoration: none !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      transition: all 0.25s !important;
      cursor: pointer !important;
      background: transparent !important;
      font-family: 'Inter', sans-serif !important;
    }

    .student-card {
      border: 1px solid rgba(37, 99, 235, 0.15) !important;
      background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.08) 0%, rgba(7, 10, 19, 0.6) 80%) !important;
    }
    .student-card .portal-icon-wrap {
      background: rgba(37, 99, 235, 0.1) !important;
      border: 1px solid rgba(37, 99, 235, 0.3) !important;
      color: #3b82f6 !important;
      box-shadow: 0 0 15px rgba(37, 99, 235, 0.15) !important;
    }
    .student-card .portal-icon-wrap::after {
      border-color: rgba(37, 99, 235, 0.4) !important;
    }
    .student-card .portal-title { color: #60a5fa !important; }
    .student-card .portal-btn { border: 1px solid rgba(37, 99, 235, 0.4) !important; color: #93c5fd !important; }
    .student-card .portal-btn:hover { background: rgba(37, 99, 235, 0.15) !important; border-color: #3b82f6 !important; color: #ffffff !important; }
    .student-card:hover::before { background: linear-gradient(180deg, rgba(37, 99, 235, 0.4), transparent) !important; }
    .student-card:hover { box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15) !important; border-color: rgba(37, 99, 235, 0.4) !important; }

    .teacher-card {
      border: 1px solid rgba(16, 185, 129, 0.15) !important;
      background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.08) 0%, rgba(7, 10, 19, 0.6) 80%) !important;
    }
    .teacher-card .portal-icon-wrap {
      background: rgba(16, 185, 129, 0.1) !important;
      border: 1px solid rgba(16, 185, 129, 0.3) !important;
      color: #10b981 !important;
      box-shadow: 0 0 15px rgba(16, 185, 129, 0.15) !important;
    }
    .teacher-card .portal-icon-wrap::after { border-color: rgba(16, 185, 129, 0.4) !important; }
    .teacher-card .portal-title { color: #34d399 !important; }
    .teacher-card .portal-btn { border: 1px solid rgba(16, 185, 129, 0.4) !important; color: #a7f3d0 !important; }
    .teacher-card .portal-btn:hover { background: rgba(16, 185, 129, 0.15) !important; border-color: #10b981 !important; color: #ffffff !important; }
    .teacher-card:hover::before { background: linear-gradient(180deg, rgba(16, 185, 129, 0.4), transparent) !important; }
    .teacher-card:hover { box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15) !important; border-color: rgba(16, 185, 129, 0.4) !important; }

    .admin-card {
      border: 1px solid rgba(245, 158, 11, 0.15) !important;
      background: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.08) 0%, rgba(7, 10, 19, 0.6) 80%) !important;
    }
    .admin-card .portal-icon-wrap {
      background: rgba(245, 158, 11, 0.1) !important;
      border: 1px solid rgba(245, 158, 11, 0.3) !important;
      color: #f59e0b !important;
      box-shadow: 0 0 15px rgba(245, 158, 11, 0.15) !important;
    }
    .admin-card .portal-icon-wrap::after { border-color: rgba(245, 158, 11, 0.4) !important; }
    .admin-card .portal-title { color: #fbbf24 !important; }
    .admin-card .portal-btn { border: 1px solid rgba(245, 158, 11, 0.4) !important; color: #fde68a !important; }
    .admin-card .portal-btn:hover { background: rgba(245, 158, 11, 0.15) !important; border-color: #f59e0b !important; color: #ffffff !important; }
    .admin-card:hover::before { background: linear-gradient(180deg, rgba(245, 158, 11, 0.4), transparent) !important; }
    .admin-card:hover { box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15) !important; border-color: rgba(245, 158, 11, 0.4) !important; }

    .features-bar {
      display: grid !important;
      grid-template-columns: repeat(4, 1fr) !important;
      gap: 20px !important;
      width: 100% !important;
      max-width: 1140px !important;
      background: rgba(7, 10, 19, 0.4) !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      border: 1px solid rgba(255, 255, 255, 0.05) !important;
      border-radius: 20px !important;
      padding: 24px !important;
      margin-bottom: 28px !important;
    }

    .feature-item {
      display: flex !important;
      align-items: center !important;
      gap: 14px !important;
    }

    .feature-icon-wrap {
      width: 44px !important;
      height: 44px !important;
      border-radius: 50% !important;
      background: rgba(255, 255, 255, 0.02) !important;
      border: 1px solid rgba(255, 255, 255, 0.06) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 16px !important;
      color: #3b82f6 !important;
      flex-shrink: 0 !important;
    }

    .feature-item:last-child .feature-icon-wrap { color: #f59e0b !important; }

    .feature-text {
      display: flex !important;
      flex-direction: column !important;
      gap: 2px !important;
    }

    .feature-title {
      font-size: 13px !important;
      font-weight: 700 !important;
      color: #f8fafc !important;
    }

    .feature-desc {
      font-size: 11px !important;
      color: #64748b !important;
      line-height: 1.4 !important;
      font-weight: 500 !important;
    }

    .site-footer {
      width: 100% !important;
      text-align: center !important;
      font-size: 11px !important;
      font-weight: 600 !important;
      color: #475569 !important;
      letter-spacing: 0.02em !important;
      margin-top: auto !important;
      padding-top: 16px !important;
      border-top: 1px solid rgba(255, 255, 255, 0.02) !important;
    }

    .auth-modal-overlay {
      position: fixed !important;
      inset: 0 !important;
      background: rgba(3, 5, 12, 0.85) !important;
      backdrop-filter: blur(14px) !important;
      -webkit-backdrop-filter: blur(14px) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      z-index: 1000 !important;
      padding: 20px !important;
      overflow-y: auto !important;
      opacity: 0 !important;
      pointer-events: none !important;
      transition: opacity 0.2s ease-in-out !important;
    }

    .auth-modal-overlay.active {
      opacity: 1 !important;
      pointer-events: auto !important;
    }

    .auth-modal-container {
      position: relative !important;
      width: 100% !important;
      max-width: 410px !important;
      margin: auto !important;
      animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    @keyframes modalFadeIn {
      from { opacity: 0; transform: scale(0.95) translateY(10px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }

    .modal-close-btn {
      position: absolute !important;
      top: 16px !important;
      right: 16px !important;
      background: rgba(255, 255, 255, 0.04) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      width: 36px !important;
      height: 36px !important;
      border-radius: 50% !important;
      color: #94a3b8 !important;
      font-size: 20px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
      z-index: 110 !important;
    }

    .modal-close-btn:hover {
      background: rgba(255, 255, 255, 0.08) !important;
      color: #ffffff !important;
      transform: scale(1.05) !important;
    }

    .auth-card {
      width: 100% !important;
      background: rgba(7, 10, 19, 0.96) !important;
      backdrop-filter: blur(16px) !important;
      -webkit-backdrop-filter: blur(16px) !important;
      border-radius: 24px !important;
      padding: clamp(18px, 2.6vh, 28px) clamp(20px, 2.7vw, 30px) clamp(16px, 2.4vh, 24px) !important;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
      border: 1px solid var(--border-color) !important;
      position: relative !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      flex-shrink: 1 !important;
    }

    .auth-hide { display: none !important; }

    .auth-card > * { position: relative !important; z-index: 10 !important; }

    .card-head { text-align: center !important; margin-bottom: clamp(10px, 1.8vh, 20px) !important; }

    .lock-icon-circle {
      width: clamp(38px, 5.5vh, 48px) !important;
      height: clamp(38px, 5.5vh, 48px) !important;
      margin: 0 auto 8px !important;
      border-radius: 50% !important;
      background: var(--card-bg) !important;
      box-shadow: inset 1px 1px 0 rgba(255,255,255,0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 1.1rem !important;
      color: var(--accent) !important;
      border: 1px solid var(--border-color) !important;
    }

    .card-title {
      font-size: clamp(1.1rem, 2.35vh, 1.35rem) !important;
      font-weight: 800 !important;
      color: var(--text-main) !important;
      margin-bottom: 3px !important;
    }

    .card-sub {
      font-size: clamp(0.68rem, 1.35vh, 0.78rem) !important;
      color: var(--text-muted) !important;
      font-weight: 600 !important;
    }

    .field-group {
      margin-bottom: clamp(8px, 1.45vh, 14px) !important;
      width: 100% !important;
    }

    .field-label {
      display: block !important;
      font-size: 0.65rem !important;
      font-weight: 800 !important;
      color: var(--text-muted) !important;
      text-transform: uppercase !important;
      letter-spacing: 0.08em !important;
      margin-bottom: 5px !important;
    }

    .input-container {
      position: relative !important;
      display: flex !important;
      align-items: center !important;
      border-radius: 12px !important;
      background: var(--input-bg) !important;
      box-shadow: inset 0px 2px 4px rgba(0,0,0,0.5) !important;
      border: 1px solid var(--border-color) !important;
      transition: box-shadow 0.25s, border-color 0.25s !important;
      height: clamp(38px, 5vh, 46px) !important;
    }

    .input-container:focus-within {
      border-color: rgba(27, 107, 245, 0.45) !important;
      box-shadow: inset 0px 2px 4px rgba(0,0,0,0.5), 0 0 0 3px rgba(27, 107, 245, 0.15) !important;
    }

    .input-container.has-error {
      border-color: #ef4444 !important;
      box-shadow: inset 0px 2px 4px rgba(0,0,0,0.5), 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    }

    .input-container.has-error .input-icon { color: #ef4444 !important; }

    .error-msg {
      color: #ef4444 !important;
      font-size: 0.65rem !important;
      font-weight: 800 !important;
      margin-top: 4px !important;
      display: block !important;
      animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    #toast {
      position: fixed !important;
      bottom: 24px !important;
      right: 24px !important;
      background: rgba(7, 10, 19, 0.96) !important;
      border: 1px solid var(--border-color) !important;
      padding: 12px 20px !important;
      border-radius: 16px !important;
      color: #f8fafc !important;
      font-family: 'Inter', sans-serif !important;
      font-size: 0.85rem !important;
      font-weight: 700 !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 10px !important;
      z-index: 9999 !important;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
      backdrop-filter: blur(10px) !important;
      transform: translateY(30px) !important;
      opacity: 0 !important;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
      pointer-events: none !important;
    }

    #toast.show {
      transform: translateY(0) !important;
      opacity: 1 !important;
      pointer-events: auto !important;
    }

    #toast.ok i { color: #22c55e !important; }
    #toast.err i { color: #ef4444 !important; }

    .input-icon {
      width: 40px !important;
      height: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      color: var(--text-label) !important;
      font-size: 0.85rem !important;
      pointer-events: none !important;
      flex-shrink: 0 !important;
    }

    .input-container:focus-within .input-icon { color: var(--accent) !important; }

    .neu-input {
      flex: 1 !important;
      height: 100% !important;
      padding: 0 16px 0 0 !important;
      border: none !important;
      outline: none !important;
      background: transparent !important;
      font-family: 'Inter', sans-serif !important;
      font-size: 0.82rem !important;
      font-weight: 600 !important;
      color: var(--text-main) !important;
      appearance: none !important;
      -webkit-appearance: none !important;
      display: flex !important;
      align-items: center !important;
      min-width: 0 !important;
    }

    .neu-input::placeholder { color: #475569 !important; font-weight: 500 !important; }

    select.neu-input {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
      background-repeat: no-repeat !important;
      background-position: right 14px center !important;
      background-size: 1.0em !important;
      cursor: pointer !important;
      padding-right: 40px !important;
      line-height: normal !important;
    }

    select.neu-input option {
      background-color: var(--card-bg) !important;
      color: var(--text-main) !important;
    }

    .input-action {
      width: 40px !important;
      height: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      color: var(--text-label) !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
      font-size: 0.8rem !important;
      flex-shrink: 0 !important;
    }

    .input-action:hover { color: var(--text-main) !important; }

    .mini-row {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      flex-wrap: wrap !important;
      gap: 8px !important;
      margin-top: 8px !important;
      padding: 0 4px !important;
    }

    .chkline {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      cursor: pointer !important;
      user-select: none !important;
      font-size: 0.7rem !important;
      font-weight: 700 !important;
      color: var(--text-muted) !important;
      transition: color 0.2s !important;
    }

    .chkline:hover { color: var(--text-main) !important; }

    .neu-chk {
      appearance: none !important;
      -webkit-appearance: none !important;
      width: 14px !important;
      height: 14px !important;
      border-radius: 4px !important;
      background: var(--input-bg) !important;
      box-shadow: inset 1px 1px 3px rgba(0,0,0,0.8) !important;
      cursor: pointer !important;
      position: relative !important;
      transition: all 0.2s !important;
      border: 1px solid var(--border-color) !important;
      flex-shrink: 0 !important;
    }

    .neu-chk:checked {
      background: var(--accent) !important;
      box-shadow: inset 0px 1px 2px rgba(0,0,0,0.5), 0 0 8px rgba(27, 107, 245, 0.4) !important;
    }

    .neu-chk:checked::after {
      content: '' !important;
      position: absolute !important;
      inset: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/7px no-repeat !important;
    }

    .neu-btn {
      width: 100% !important;
      padding: clamp(10px, 1.65vh, 13px) !important;
      margin-top: clamp(8px, 1.4vh, 14px) !important;
      border: none !important;
      border-radius: 12px !important;
      font-family: 'Inter', sans-serif !important;
      font-size: 0.88rem !important;
      font-weight: 800 !important;
      color: #ffffff !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 10px !important;
      letter-spacing: 0.02em !important;
    }

    .neu-btn.primary {
      background: linear-gradient(135deg, #1b6bf5 0%, #0c1020 100%) !important;
      box-shadow: 0 4px 12px rgba(27, 107, 245, 0.3) !important;
      border: 1px solid var(--border-color) !important;
    }

    .neu-btn.primary:hover {
      background: linear-gradient(135deg, #3b82f6 0%, #15203b 100%) !important;
      box-shadow: 0 6px 16px rgba(27, 107, 245, 0.4) !important;
      transform: translateY(-1px) !important;
    }

    .neu-btn.primary:active, .neu-btn.pressed {
      transform: translateY(1px) !important;
      box-shadow: 0 2px 8px rgba(27, 107, 245, 0.2) !important;
    }

    .neu-btn:disabled {
      opacity: 0.6 !important;
      cursor: not-allowed !important;
      pointer-events: none !important;
    }

    .divider {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      margin: clamp(10px, 1.8vh, 18px) 0 clamp(8px, 1.2vh, 12px) !important;
    }

    .divider::before, .divider::after {
      content: '' !important;
      flex: 1 !important;
      height: 1px !important;
      background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent) !important;
    }

    .divider-text {
      font-size: 0.65rem !important;
      font-weight: 700 !important;
      color: var(--text-muted) !important;
      text-transform: uppercase !important;
      letter-spacing: 0.1em !important;
      white-space: nowrap !important;
    }

    .switch-text {
      text-align: center !important;
      font-size: 0.75rem !important;
      font-weight: 700 !important;
      color: var(--text-muted) !important;
    }

    .switch-btn {
      background: none !important;
      border: none !important;
      font-family: 'Inter', sans-serif !important;
      font-size: 0.75rem !important;
      font-weight: 900 !important;
      color: var(--accent) !important;
      cursor: pointer !important;
      margin-left: 4px !important;
      transition: color .2s !important;
    }

    .switch-btn:hover {
      color: var(--accent-dark) !important;
      text-decoration: underline !important;
    }

    .info-box {
      background: var(--input-bg) !important;
      border-radius: 10px !important;
      padding: 8px 10px !important;
      display: flex !important;
      gap: 8px !important;
      align-items: flex-start !important;
      box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5) !important;
      border: 1px solid var(--border-color) !important;
      margin-top: 8px !important;
    }

    .info-box i {
      color: var(--accent) !important;
      font-size: 0.75rem !important;
      margin-top: 2px !important;
      flex-shrink: 0 !important;
    }

    .info-box p {
      font-size: 0.65rem !important;
      color: var(--text-muted) !important;
      font-weight: 600 !important;
      line-height: 1.35 !important;
    }

    @media (max-width: 992px) {
      .portals-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 480px !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }
      .features-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
      }
    }

    @media (max-width: 576px) {
      .features-bar {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
      }
      .hero-title { font-size: clamp(2rem, 8vw, 2.8rem) !important; }
      .portal-card { padding: 32px 20px !important; }
      .auth-modal-container { max-width: 100% !important; }
    }
  
/* ══════════════════════════════════════════════════════════════════════════
   SIGN-IN REDESIGN (v2.2). Scoped to .tk-login so none of the existing
   page styles are affected. Colours come from the accent variables the rest
   of the app already sets, with fallbacks.
   ══════════════════════════════════════════════════════════════════════════ */
.tk-login{ --tkc: var(--accent-solid, #1b6bf5); padding:22px; display:flex;
  align-items:center; justify-content:center; min-height:100vh; }
.tk-login-shell{
  width:min(1400px,100%); display:grid; grid-template-columns:1.05fr .95fr;
  background:rgba(10,14,26,.72); border:1px solid rgba(255,255,255,.08);
  border-radius:30px; overflow:hidden; min-height:700px;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.7);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
}
.tk-brand{ position:relative; padding:44px 50px; display:flex; flex-direction:column; align-items:center; text-align:center;
  background:
    radial-gradient(120% 90% at 8% 0%, color-mix(in srgb, var(--tkc) 60%, #000 40%) 0%, transparent 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--tkc) 36%, #0b1020) 0%, #0b1020 72%);
}
@supports not (color: color-mix(in srgb, red 50%, blue)){
  .tk-brand{ background:linear-gradient(160deg, #14306b 0%, #0b1020 72%); }
}
.tk-brand::after{ content:""; position:absolute; inset:0; pointer-events:none;
  border-right:1px solid rgba(255,255,255,.10);
  border-radius:0 46% 46% 0 / 0 50% 50% 0; }
.tk-brand-top{ display:flex; flex-direction:column; align-items:center; gap:12px;
  margin-bottom:auto; text-align:center; width:100%; }
/* The supplied logo contains the wordmark and its own transparency. */
.tk-brand-logo{ height:92px; width:auto; object-fit:contain; display:block;
  background:transparent; border-radius:0; padding:9px 15px;
  box-shadow:none; }
.tk-brand-tag{ font-size:.8rem; color:rgba(255,255,255,.75); font-weight:600; letter-spacing:.02em; }
.tk-headline{ text-align:center; font-size:clamp(1.65rem,3.4vw,3.1rem); font-weight:900; line-height:1.05;
  letter-spacing:-.03em; color:#fff; margin:40px 0 0; }
.tk-headline em{ font-style:normal; color:color-mix(in srgb, var(--tkc) 45%, #fff); }
.tk-rule{ width:72px; height:5px; border-radius:4px; background:#fff; opacity:.85; margin:22px auto 20px; }
.tk-blurb{ font-size:.92rem; line-height:1.7; color:rgba(255,255,255,.8); max-width:46ch; font-weight:500; margin:0 auto; }
.tk-blurb b{ color:#fff; font-weight:700; }
.tk-stats{ display:flex; justify-content:center; margin-top:auto; padding-top:32px; flex-wrap:wrap; gap:0; }
.tk-stat{ padding-right:32px; margin-right:32px; border-right:1px solid rgba(255,255,255,.16); }
.tk-stat:last-child{ border:0; margin:0; padding:0; }
.tk-stat-ic{ width:42px; height:42px; border-radius:13px; display:grid; place-items:center;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18);
  color:#fff; font-size:.92rem; margin-bottom:12px; }
.tk-stat-n{ font-size:1.6rem; font-weight:900; color:#fff; line-height:1; }
.tk-stat-l{ font-size:.71rem; color:rgba(255,255,255,.68); margin-top:5px; font-weight:600; }
.tk-credit{ display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; margin-top:24px;
  font-size:.7rem; color:rgba(255,255,255,.6); font-weight:600; }
.tk-credit b{ color:rgba(255,255,255,.9); }

.tk-auth{ padding:44px 50px; display:flex; align-items:center; justify-content:center; }
.tk-auth-card{ width:100%; max-width:470px; }
.tk-welcome-title{ font-size:2rem; font-weight:900; text-align:center; letter-spacing:-.02em; color:#fff; }
.tk-welcome-sub{ text-align:center; color:rgba(255,255,255,.6); font-size:.87rem; margin-top:8px; font-weight:500; }
.tk-welcome-sub b{ color:var(--tkc); font-weight:700; }
.tk-roles{ display:grid; grid-template-columns:1fr; gap:11px; margin:26px 0 22px; }
.tk-role{ display:flex; align-items:center; gap:12px; text-align:left; width:100%;
  padding:15px 15px; border-radius:15px; cursor:pointer; font-family:inherit;
  background:rgba(255,255,255,.03); border:1.5px solid rgba(255,255,255,.09); color:#fff;
  transition:border-color .16s, background .16s, transform .16s; }
.tk-role:hover{ transform:translateY(-2px); border-color:color-mix(in srgb, var(--tkc) 50%, transparent); }
.tk-role[aria-checked="true"]{ border-color:var(--tkc);
  background:color-mix(in srgb, var(--tkc) 14%, transparent); }
.tk-role-ic{ width:41px; height:41px; border-radius:12px; flex-shrink:0;
  display:grid; place-items:center; color:#fff; font-size:.94rem; }
/* Title and description are block-level: as inline spans they ran together
   on one line. */
.tk-role-txt{ display:flex; flex-direction:column; flex:1; min-width:0; }
.tk-role-t{ display:block; font-size:.9rem; font-weight:800; line-height:1.25; }
.tk-role-d{ display:block; font-size:.72rem; color:rgba(255,255,255,.58);
  margin-top:3px; font-weight:500; line-height:1.35; }
.tk-role-arrow{ color:rgba(255,255,255,.35); font-size:.75rem; flex-shrink:0; }
.tk-role[aria-checked="true"] .tk-role-arrow{ color:var(--tkc); }

.tk-cta{ width:100%; padding:15px; border:0; border-radius:14px; cursor:pointer;
  background:var(--tkc); color:#fff; font-family:inherit; font-size:.93rem; font-weight:800;
  display:flex; align-items:center; justify-content:center; gap:10px;
  box-shadow:0 10px 26px -8px color-mix(in srgb, var(--tkc) 75%, transparent);
  transition:transform .16s, filter .16s; }
.tk-cta:hover{ transform:translateY(-2px); filter:brightness(1.08); }
.tk-hint{ text-align:center; font-size:.72rem; color:rgba(255,255,255,.5);
  margin-top:11px; font-weight:500; line-height:1.5; }
.tk-sep{ display:flex; align-items:center; gap:14px; margin:24px 0 13px;
  color:rgba(255,255,255,.45); font-size:.73rem; font-weight:700; }
.tk-sep::before,.tk-sep::after{ content:""; flex:1; height:1px; background:rgba(255,255,255,.09); }
.tk-help{ text-align:center; font-size:.79rem; color:rgba(255,255,255,.58); font-weight:500; }
.tk-help a{ color:var(--tkc); text-decoration:none; font-weight:700; }
.tk-help a:hover{ text-decoration:underline; }

/* ── RESPONSIVE LADDER ──────────────────────────────────────────────────
   The previous two breakpoints jumped straight from a 1400px two-column
   layout to a phone layout, so tablets and mid-size phones (600-1040px)
   were left with oversized type and a cramped, overflowing panel. */
@media (max-width:1200px){
  .tk-login-shell{ min-height:0; }
  .tk-brand{ padding:38px 36px; }
  .tk-auth{ padding:38px 36px; }
}
@media (max-width:1040px){
  .tk-login{ padding:16px; align-items:flex-start; }
  .tk-login-shell{ grid-template-columns:1fr; border-radius:24px; }
  .tk-brand{ padding:34px 26px; }
  .tk-brand::after{ display:none; }
  .tk-headline{ margin-top:24px; }
  .tk-blurb{ font-size:.88rem; }
  .tk-stats{ padding-top:26px; }
  .tk-auth{ padding:30px 26px; }
  .tk-auth-card{ max-width:520px; }
}
@media (max-width:720px){
  .tk-brand-logo{ height:78px; padding:8px 13px; }
  .tk-headline{ font-size:1.75rem; }
  .tk-rule{ margin:18px auto 16px; }
  .tk-welcome-title{ font-size:1.65rem; }
  .tk-stat{ padding-right:22px; margin-right:22px; }
  .tk-stat-ic{ width:38px; height:38px; margin-bottom:9px; }
  .tk-stat-n{ font-size:1.35rem; }
}
@media (max-width:560px){
  .tk-login{ padding:0; }
  .tk-login-shell{ border-radius:0; border:0; min-height:100vh; }
  .tk-brand{ padding:28px 18px; }
  .tk-auth{ padding:26px 18px 40px; }
  .tk-auth-card{ max-width:none; }
  .tk-brand-logo{ height:66px; }
  .tk-headline{ font-size:1.5rem; }
  .tk-blurb{ font-size:.85rem; }
  /* Stats wrap to a 3-up grid instead of overflowing sideways. */
  .tk-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding-top:24px; width:100%; }
  .tk-stat{ padding:0; margin:0; border:0; text-align:center; }
  .tk-stat-ic{ margin:0 auto 8px; }
  .tk-stat-n{ font-size:1.15rem; }
  .tk-stat-l{ font-size:.64rem; }
  .tk-role{ padding:13px 12px; }
  .tk-role-t{ font-size:.85rem; }
  .tk-role-d{ font-size:.69rem; }
  /* Keep the sign-in CTA clear of the floating Appearance / chat buttons. */
  .tk-help:last-of-type{ margin-bottom:64px; }
}
@media (max-width:380px){
  .tk-headline{ font-size:1.32rem; }
  .tk-brand-logo{ height:58px; }
  .tk-stats{ grid-template-columns:1fr 1fr; }
  .tk-stat:last-child{ grid-column:1 / -1; }
}

/* ── INPUT FIXES (v2.2) ────────────────────────────────────────────────────
   1. Left padding: the field had `padding:0 16px 0 0`, so typed text started
      hard against the leading icon with no breathing room.
   2. The white box was Chrome's autofill styling, not our CSS. Chrome paints
      autofilled inputs with its own background and ignores `background`, so
      it has to be overridden with a large inset shadow plus an explicit
      text-fill colour. Without this, an autofilled email showed as dark text
      on a white block inside an otherwise dark field. */
.sp-input, .neu-input, .tk-hex {
    padding-left: 12px !important;
    text-indent: 2px;
}
.sp-input:-webkit-autofill,
.sp-input:-webkit-autofill:hover,
.sp-input:-webkit-autofill:focus,
.sp-input:-webkit-autofill:active,
.neu-input:-webkit-autofill,
.neu-input:-webkit-autofill:hover,
.neu-input:-webkit-autofill:focus,
.neu-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: var(--sp-text, var(--text-main, #eef2fb)) !important;
    caret-color: var(--sp-text, var(--text-main, #eef2fb));
    transition: background-color 9999s ease-in-out 0s !important;
}

