
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --purple: #7c22d4;
      --purple-light: #9b3dea;
      --purple-pale: #ede9f8;
      --purple-soft: #f3f0fc;
      --text-dark: #1a1a2e;
      --text-muted: #6b6b7b;
      --white: #ffffff;
      --bg: #f7f7f9;
      --card-bg: #ffffff;
      --radius: 16px;
      --shadow: 0 4px 24px rgba(124,34,212,0.08);
      --destructive: #dc2626;
      --border: #d1d5db;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Roboto', sans-serif;
      background: var(--bg);
      color: var(--text-dark);
      overflow-x: hidden;
    }

    nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 64px;
      background: var(--white);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text-dark);
      text-decoration: none;
    }

    .nav-logo .logo-icon {
      width: 34px; height: 34px;
      background: var(--purple);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      color: white;
      font-size: 0.95rem;
      font-weight: 700;
    }

    .nav-actions { display: flex; align-items: center; gap: 12px; }

    .btn-ghost {
      background: none; border: none; cursor: pointer;
      font-size: 0.95rem; font-weight: 500;
      color: var(--text-dark);
      padding: 10px 20px;
      border-radius: 10px;
      transition: background 0.2s;
      text-decoration: none;
    }
    .btn-ghost:hover { background: var(--purple-soft); }

    .btn-primary {
      background: var(--purple);
      color: white;
      border: none; cursor: pointer;
      font-size: 0.95rem; font-weight: 600;
      padding: 10px 24px;
      border-radius: 10px;
      text-decoration: none;
      transition: background 0.2s, transform 0.15s;
      display: inline-block;
    }
    .btn-primary:hover { background: var(--purple-light); transform: translateY(-1px); }

    main {
      max-width: 1440px;
      margin: 0 auto;
      padding: 48px 32px;
      display: flex;
      justify-content: center;
    }

    .card {
      background: var(--white);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
      width: 100%;
      max-width: 460px;
      overflow: hidden;
      animation: fadeUp 0.5s ease both;
    }

    .card-header {
      padding: 32px 32px 0;
      text-align: center;
    }

    .card-title {
      font-size: 1.9rem;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 8px;
    }

    .card-desc {
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

    .card-content { padding: 28px 32px 32px; }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 20px;
    }

    .form-group:last-of-type { margin-bottom: 0; }

    label {
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--text-dark);
    }

    /* Input Fields */
    .input {
      font-size: 0.95rem;
      color: var(--text-dark);
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 14px;
      width: 100%;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .input::placeholder { color: #b0b0be; }

    .input:focus {
      border-color: var(--purple);
      box-shadow: 0 0 0 3px rgba(124,34,212,0.1);
      outline: none;
    }

    .input.error {
      border-color: var(--destructive);
    }

    .input.error:focus {
      box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
    }

    .input-wrap {
      position: relative;
    }

    .input-wrap .input {
      padding-right: 44px;
    }

    .toggle-pw {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      padding: 0;
      color: var(--text-muted);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .toggle-pw svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .error-msg {
      font-size: 0.82rem;
      color: var(--destructive);
      display: none;
    }
    .error-msg.show { display: block; }

    .btn-submit {
      width: 100%;
      background: var(--purple);
      color: white;
      border: none;
      cursor: pointer;
      font-size: 1rem;
      font-weight: 500;
      padding: 13px;
      border-radius: 8px;
      margin-top: 24px;
      transition: background 0.2s, transform 0.15s;
    }
    .btn-submit:hover { background: var(--purple-light); transform: translateY(-1px); }
    .btn-submit:active { transform: translateY(0); }

    .login-link { text-align: center; font-size: 0.88rem; color: var(--text-muted); margin-top: 18px; }
    .login-link a { color: var(--purple); text-decoration: none; font-weight: 500; }
    .login-link a:hover { text-decoration: underline; }

    /* Animation */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 600px) {
      nav { padding: 16px 24px; }
      main { padding: 32px 16px; }
      .card-header { padding: 24px 24px 0; }
      .card-content { padding: 24px; }
      .card-title { font-size: 1.6rem; }
    }

    @media (max-width: 480px) {
      nav {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 12px;
      }

      .nav-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
      }

      .nav-actions a {
        flex: 1 1 140px;
        text-align: center;
      }
    }

    /* Modal theme overrides */
    .modal-header, .modal-footer { border: none; }
    .modal-title { color: var(--purple); font-weight: 700; }
    .modal-body h6 { color: var(--purple); font-weight: 600; margin-top: 1rem; margin-bottom: 0.5rem; }
    .modal-body p { margin-bottom: 1rem; line-height: 1.5; }
    .btn-secondary { background: var(--purple); border: none; }
    .btn-secondary:hover { background: var(--purple-light); }
    .btn-close { filter: invert(27%) sepia(90%) saturate(6346%) hue-rotate(268deg) brightness(97%) contrast(97%); }
