
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background-color: #FDFDFC;
      font-family: system-ui, -apple-system, 'Inter', 'Segoe UI', 'Instrument Sans', sans-serif;
      color: #1b1b18;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      padding: 1.5rem;
    }

    /* auth header bar */
    .auth-header {
      width: 100%;
      max-width: 1200px;
      margin-bottom: 1.5rem;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 1rem;
    }

    .auth-link {
      font-size: 0.9rem;
      font-weight: 500;
      padding: 0.45rem 1.2rem;
      border-radius: 40px;
      text-decoration: none;
      transition: all 0.2s ease;
      background: transparent;
      color: #1b1b18;
      border: 1px solid transparent;
    }

    .auth-link-login {
      border-color: #e2dfd9;
      background: #ffffff;
    }

    .auth-link-login:hover {
      border-color: #f85c2e;
      background: #fff7f2;
      transform: translateY(-1px);
    }

    .auth-link-register {
      background: #1b1b18;
      color: white;
      border: 1px solid #1b1b18;
    }

    .auth-link-register:hover {
      background: #f85c2e;
      border-color: #f85c2e;
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(248,92,46,0.2);
    }

    /* main card container */
    .generator-container {
      max-width: 1200px;
      width: 100%;
      background: #ffffff;
      border-radius: 2rem;
      box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.2), inset 0px 0px 0px 1px rgba(26, 26, 0, 0.06);
      overflow: hidden;
      transition: all 0.2s ease;
    }

    /* two-column layout */
    .generator-grid {
      display: flex;
      flex-direction: column;
    }

    @media (min-width: 800px) {
      .generator-grid {
        flex-direction: row;
      }
    }

    /* left side — interactive generator */
    .generator-panel {
      flex: 1.2;
      padding: 2rem 2rem 2.5rem 2rem;
      background: #ffffff;
    }

    /* right side — visual / brand side */
    .visual-panel {
      flex: 0.9;
      background: linear-gradient(145deg, #fff6f0 0%, #ffefe5 100%);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 2rem;
      position: relative;
      overflow: hidden;
    }

    /* badge & header */
    .badge {
      display: inline-block;
      background: #f3e8e4;
      color: #c2410c;
      font-size: 0.75rem;
      font-weight: 600;
      padding: 0.2rem 0.8rem;
      border-radius: 40px;
      letter-spacing: -0.2px;
      margin-bottom: 1rem;
    }

    h1 {
      font-size: 2rem;
      font-weight: 600;
      line-height: 1.2;
      letter-spacing: -0.02em;
      margin-bottom: 0.75rem;
      color: #1b1b18;
    }

    .desc {
      color: #5e5c5a;
      margin-bottom: 2rem;
      font-size: 0.95rem;
      border-left: 3px solid #f85c2e;
      padding-left: 1rem;
    }

    /* password display area */
    .password-area {
      background: #faf9f6;
      border-radius: 1.5rem;
      padding: 1rem 1.25rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid #eaeae5;
      transition: all 0.2s;
      margin-bottom: 1.8rem;
      box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    }

    .password-area:focus-within {
      border-color: #f85c2e;
      box-shadow: 0 0 0 3px rgba(248,92,46,0.1);
    }

    #passwordField {
      font-family: 'SF Mono', 'Fira Code', monospace;
      font-size: 1.25rem;
      font-weight: 500;
      background: transparent;
      border: none;
      width: 100%;
      outline: none;
      color: #1f1f1c;
      letter-spacing: 0.02em;
      word-break: break-all;
    }

    .copy-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      border-radius: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      color: #6b6b66;
    }

    .copy-btn:hover {
      background: #eae8e2;
      color: #f85c2e;
    }

    /* strength meter */
    .strength-section {
      margin: 1.5rem 0 1.8rem 0;
    }

    .strength-label {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
      font-size: 0.85rem;
      font-weight: 500;
    }

    .strength-bar {
      height: 6px;
      background: #e6e4df;
      border-radius: 10px;
      overflow: hidden;
    }

    .strength-fill {
      width: 0%;
      height: 100%;
      background: #e44e2c;
      border-radius: 10px;
      transition: width 0.2s ease, background 0.2s;
    }

    /* sliders & toggles */
    .control-group {
      margin-bottom: 1.5rem;
    }

    .control-header {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      font-weight: 500;
      margin-bottom: 0.5rem;
    }

    input[type="range"] {
      width: 100%;
      height: 4px;
      -webkit-appearance: none;
      background: #e2dfd9;
      border-radius: 5px;
      outline: none;
    }

    input[type="range"]:focus {
      outline: none;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 18px;
      height: 18px;
      background: #f85c2e;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      border: 2px solid white;
    }

    .check-group {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .check-group label {
      font-size: 0.9rem;
      user-select: none;
      color: #2c2c28;
    }

    input[type="checkbox"] {
      width: 18px;
      height: 18px;
      accent-color: #f85c2e;
      cursor: pointer;
    }

    /* generate button */
    .generate-btn {
      background: #1b1b18;
      color: white;
      font-weight: 600;
      font-size: 0.95rem;
      padding: 0.9rem 1.5rem;
      border: none;
      border-radius: 60px;
      width: 100%;
      cursor: pointer;
      transition: all 0.2s;
      margin-top: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .generate-btn:hover {
      background: #f85c2e;
      transform: translateY(-1px);
    }

    /* right side artwork */
    .lock-icon {
      width: 120px;
      opacity: 0.85;
      margin-bottom: 1.8rem;
    }

    .visual-panel h3 {
      font-size: 1.8rem;
      font-weight: 700;
      color: #c2410c;
      letter-spacing: -0.02em;
      text-align: center;
      line-height: 1.2;
    }

    .visual-panel p {
      text-align: center;
      color: #4a3b32;
      max-width: 260px;
      margin-top: 1rem;
      font-size: 0.9rem;
    }

    .shield-badge {
      margin-top: 2rem;
      background: rgba(255,255,240,0.7);
      backdrop-filter: blur(4px);
      padding: 0.3rem 1rem;
      border-radius: 60px;
      font-size: 0.7rem;
      font-weight: 500;
      color: #b94b1f;
    }

    .feature-tag {
      display: flex;
      gap: 0.8rem;
      margin-top: 2rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .feature-tag span {
      font-size: 0.7rem;
      background: #ffffffcc;
      padding: 0.2rem 0.8rem;
      border-radius: 60px;
      color: #4a3b32;
    }

    /* toast message */
    .toast-msg {
      position: fixed;
      bottom: 2rem;
      left: 50%;
      transform: translateX(-50%);
      background: #1b1b18;
      color: #fef6e8;
      padding: 0.6rem 1.5rem;
      border-radius: 60px;
      font-size: 0.8rem;
      font-weight: 500;
      opacity: 0;
      transition: opacity 0.2s;
      pointer-events: none;
      z-index: 100;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    /* responsive */
    @media (max-width: 700px) {
      body {
        padding: 1rem;
      }
      .generator-panel {
        padding: 1.5rem;
      }
      h1 {
        font-size: 1.6rem;
      }
      #passwordField {
        font-size: 1rem;
      }
      .visual-panel h3 {
        font-size: 1.4rem;
      }
      .auth-header {
        margin-bottom: 1rem;
        padding: 0 0.5rem;
      }
      .auth-link {
        font-size: 0.8rem;
        padding: 0.35rem 1rem;
      }
    }

    /* dark mode support (respects system) */
    @media (prefers-color-scheme: dark) {
      body {
        background-color: #0a0a0a;
      }
      .generator-container {
        background: #141412;
        box-shadow: 0 25px 40px -12px #00000040;
      }
      .generator-panel {
        background: #141412;
      }
      .password-area {
        background: #1f1f1c;
        border-color: #2e2e2a;
      }
      #passwordField {
        color: #efebe5;
      }
      .badge {
        background: #2d231e;
        color: #fe8b5e;
      }
      h1, .control-header, .check-group label, .strength-label {
        color: #ece8e0;
      }
      .desc {
        color: #aaa59c;
        border-left-color: #fe784e;
      }
      .check-group label {
        color: #cbc7be;
      }
      .visual-panel {
        background: #1e1612;
      }
      .visual-panel h3 {
        color: #ff8a62;
      }
      .visual-panel p {
        color: #bcaea2;
      }
      .feature-tag span {
        background: #2e241f;
        color: #e0ccc0;
      }
      .generate-btn {
        background: #2a2a26;
        color: #f3ede5;
      }
      .generate-btn:hover {
        background: #f85c2e;
        color: white;
      }
      .strength-bar {
        background: #2c2a26;
      }
      .copy-btn:hover {
        background: #2e2b27;
      }
      .toast-msg {
        background: #f3ede5;
        color: #1b1b18;
      }
      .auth-link-login {
        background: #1f1f1c;
        border-color: #3a3a36;
        color: #e0dbd2;
      }
      .auth-link-register {
        background: #f85c2e;
        border-color: #f85c2e;
        color: white;
      }
      .auth-link-register:hover {
        background: #ff7350;
        border-color: #ff7350;
      }
      .auth-link-login:hover {
        background: #2c2c28;
        border-color: #f85c2e;
      }
    }
  