  .layout {
    position: relative; z-index: 10; height: auto; min-height: 100vh; min-height: 100dvh; display: flex;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .layout.on { opacity: 1; }
  .aurora-bg {
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
  }
  .aurora-bg.on { opacity: 1; }
  .lg-load {
    position: fixed;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  .lg-load.hide { opacity: 0; pointer-events: none; }
  .lg-load-spinner {
    position: relative;
    width: 220px;
    height: 12px;
    border-radius: 6px;
    background: var(--control-bg);
    overflow: hidden;
  }
  .lg-load-spinner::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 50%, transparent); transform: translateX(-120%); animation: lg-shine 1.35s linear infinite; }
  @keyframes lg-shine { to { transform: translateX(320%); } }
  .left-panel {
    max-width: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .right-panel {
    width: 75%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 60px 80px 0;
    --text: #ffffff;
    --text-dim: #98989d;
    --text-faint: #636366;
    color: var(--text);
  }
  .card {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    backdrop-filter: blur(10px) saturate(1.15);
    border: none;
    border-right: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 48px 40px;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: flex-start;
    transition: background-color 0.4s ease, border-color 0.4s ease;
  }
  .logo {
    position: absolute;
    top: 30px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .logo svg {
    width: 120px;
    height: auto;
    fill: #ffffff;
    opacity: 0.9;
    transition: fill 0.35s ease, opacity 0.35s ease;
  }
  .logo svg .logo-dim { fill: #888888; }
  .brand-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    color: var(--text);
  }
  .brand-sub {
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 28px;
    font-weight: 400;
  }
  .tabs {
    display: flex;
    flex-shrink: 0;
    background: var(--control-bg);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 28px;
    position: relative;
  }
  .tab-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: var(--tab-indicator);
    border-radius: 8px;
    transform: translateX(0);
    transition:
      transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
      opacity 0.3s ease;
    will-change: transform;
    pointer-events: none;
  }
  .tabs[data-active="register"] .tab-indicator { transform: translateX(100%); }
  .tab {
    flex: 1;
    padding: 9px 0;
    text-align: center;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    transition: color 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    user-select: none;
  }
  .tab:hover:not(.active) { color: var(--text-dim); }
  .tab.active { color: var(--text); }
  .tabs.no-tab .tab { color: var(--text-faint); }
  .tabs.no-tab .tab:hover { color: var(--text-dim); }
  .tabs.no-tab .tab-indicator { opacity: 0; }
  .typewriter-area {
    position: absolute;
    left: 50px;
    max-width: 700px;
  }

  .typewriter-wrap {
    font-family: 'MiSans', 'Manrope', sans-serif;
    font-size: 28px;
    line-height: 2;
    min-height: 150px;
    display: flex;
    /**flex-direction: column;**/
    position: relative;
    justify-content: flex-end;
    animation: fadeUp 1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .tw-line {
    display: flex;
    align-items: center;
    min-height: 1.5em;
    white-space: nowrap;
  }

  .tw-prompt {
    color: var(--text-faint);
    font-weight: 400;
    margin-right: 12px;
    font-size: 0.7em;
  }

  .tw-text { color: var(--text); font-weight: 600; letter-spacing: 0.01em; }
  .tw-text.en { color: var(--text); font-weight: 600; }

  .tw-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--text);
    margin-left: 4px;
    animation: blink 0.8s step-end infinite;
    vertical-align: middle;
  }
  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

  @keyframes fadeUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  @media (max-width: 540px) {
    .card { padding: 32px 24px; }
    .logo svg { width: 100px; }
    .typewriter-wrap { font-size: 18px; }
    .left-toolbar {
      top: 20px;
      right: 16px;
    }
    .logo {
      top: 32px;
      left: 16px;
    }
    .brand-sub { margin-bottom: 24px; }
  }

  @media (max-width: 760px) {
    html, body {
      height: auto;
      min-height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
    }
    .layout { height: auto; min-height: 100vh; min-height: 100dvh; }
    .right-panel { display: none; }
    .left-panel { width: 100%; padding: 0; }
    .card {
      border-right: none;
      max-width: none;
      height: auto;
      min-height: 0;
      padding: 88px 24px 32px;
    }
    .form-wrap {
      justify-content: flex-start;
      overflow: visible;
      flex: 0 0 auto;
    }
    .form-stack { max-width: none; height: auto !important; }
    .card { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  }


  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      transition-delay: 0s !important;
    }
  }
