    :root {
      --red-deep: #B71C1C;
      --red-primary: #D32F2F;
      --red-mid: #E53935;
      --red-light: #FF5252;
      --red-glow: rgba(211, 47, 47, 0.35);
      --red-soft: rgba(211, 47, 47, 0.08);
      --white-pure: #FFFFFF;
      --white-soft: #F9F0F0;
      --white-muted: #F0E0E0;
      --gray-dark: #3A1A1A;
      --gray-mid: #6B4A4A;
      --gray-light: #A08080;
      --border-subtle: rgba(183, 28, 28, 0.12);
      --shadow-red: 0 8px 32px rgba(183, 28, 28, 0.18);
      --shadow-card: 0 20px 60px rgba(58, 26, 26, 0.12);
      --radius-sm: 10px;
      --radius-md: 16px;
      --radius-lg: 24px;
      --radius-xl: 32px;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Outfit', sans-serif;
      min-height: 100vh;
      background: var(--white-pure);
      overflow-x: hidden;
      position: relative;
    }

    /* === ANIMATED BACKGROUND === */
    .bg-scene {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      background: linear-gradient(160deg, #FFF5F5 0%, #FFFFFF 40%, #FFF0F0 70%, #FFE8E8 100%);
    }

    .bg-scene::before {
      content: '';
      position: absolute;
      width: 700px;
      height: 700px;
      border-radius: 50%;
      background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
      top: -200px;
      right: -150px;
      animation: floatBlob1 18s ease-in-out infinite;
    }

    .bg-scene::after {
      content: '';
      position: absolute;
      width: 500px;
      height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(229, 57, 53, 0.15) 0%, transparent 70%);
      bottom: -150px;
      left: -100px;
      animation: floatBlob2 22s ease-in-out infinite;
    }

    .bg-blob-3 {
      position: absolute;
      width: 350px;
      height: 350px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 82, 82, 0.1) 0%, transparent 70%);
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      animation: floatBlob3 15s ease-in-out infinite;
    }

    /* Grid pattern overlay */
    .bg-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
      background-size: 60px 60px;
      opacity: 0.4;
      animation: gridShift 30s linear infinite;
    }

    @keyframes floatBlob1 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33% { transform: translate(-40px, 60px) scale(1.1); }
      66% { transform: translate(30px, -30px) scale(0.95); }
    }

    @keyframes floatBlob2 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33% { transform: translate(50px, -40px) scale(1.08); }
      66% { transform: translate(-30px, 30px) scale(0.92); }
    }

    @keyframes floatBlob3 {
      0%, 100% { transform: translate(-50%, -50%) scale(1); }
      50% { transform: translate(-50%, -50%) scale(1.2); }
    }

    @keyframes gridShift {
      0% { transform: translate(0, 0); }
      100% { transform: translate(60px, 60px); }
    }

    /* === FLOATING PARTICLES === */
    .particle {
      position: absolute;
      border-radius: 50%;
      background: var(--red-primary);
      opacity: 0.12;
      pointer-events: none;
    }

    .particle:nth-child(1) { width: 8px; height: 8px; top: 15%; left: 10%; animation: particleFloat 12s ease-in-out infinite; }
    .particle:nth-child(2) { width: 5px; height: 5px; top: 25%; left: 80%; animation: particleFloat 16s ease-in-out infinite 2s; }
    .particle:nth-child(3) { width: 12px; height: 12px; top: 60%; left: 15%; animation: particleFloat 14s ease-in-out infinite 4s; }
    .particle:nth-child(4) { width: 6px; height: 6px; top: 70%; left: 85%; animation: particleFloat 18s ease-in-out infinite 1s; }
    .particle:nth-child(5) { width: 9px; height: 9px; top: 40%; left: 50%; animation: particleFloat 13s ease-in-out infinite 3s; }
    .particle:nth-child(6) { width: 4px; height: 4px; top: 85%; left: 35%; animation: particleFloat 17s ease-in-out infinite 5s; }
    .particle:nth-child(7) { width: 7px; height: 7px; top: 10%; left: 60%; animation: particleFloat 15s ease-in-out infinite 2.5s; }

    @keyframes particleFloat {
      0%, 100% { transform: translateY(0) translateX(0); opacity: 0.12; }
      25% { transform: translateY(-30px) translateX(15px); opacity: 0.2; }
      50% { transform: translateY(-10px) translateX(-20px); opacity: 0.08; }
      75% { transform: translateY(-40px) translateX(10px); opacity: 0.18; }
    }

    /* === MAIN CONTAINER === */
    .page-wrapper {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 16px;
    }

    /* === LOGIN CARD === */
      .login-card {
        width: 100%;
        max-width: 440px;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(183, 28, 28, 0.08);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-card), 0 0 0 1px rgba(255,255,255,0.6) inset;
        overflow: hidden;
        animation: cardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
        position: relative;
      }

      @keyframes cardEntry {
        from { opacity: 0; transform: translateY(40px) scale(0.97); }
        to { opacity: 1; transform: translateY(0) scale(1); }
      }

      .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--red-deep), var(--red-mid), var(--red-light), var(--red-mid), var(--red-deep));
        background-size: 200% 100%;
        animation: shimmerBar 4s ease-in-out infinite;
      }

      @keyframes shimmerBar {
        0%, 100% { background-position: 0% 0%; }
        50% { background-position: 100% 0%; }
      }

    /* === REGISTER CARD === */
    .reg-card {
      width: 100%;
      max-width: 680px;
      background: rgba(255, 255, 255, 0.75);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid rgba(183, 28, 28, 0.08);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-card), 0 0 0 1px rgba(255,255,255,0.6) inset;
      padding: 0;
      overflow: hidden;
      animation: cardEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
      position: relative;
    }

    @keyframes cardEntry {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* Card top red accent bar */
    .reg-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--red-deep), var(--red-mid), var(--red-light), var(--red-mid), var(--red-deep));
      background-size: 200% 100%;
      animation: shimmerBar 4s ease-in-out infinite;
    }

    @keyframes shimmerBar {
      0%, 100% { background-position: 0% 0%; }
      50% { background-position: 100% 0%; }
    }

    /* === CARD HEADER === */
    .card-header-area {
      padding: 36px 40px 24px;
      text-align: center;
      position: relative;
    }

    .logo-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 72px;
      height: 72px;
      border-radius: 20px;
      background: linear-gradient(135deg, var(--red-deep), var(--red-mid));
      box-shadow: 0 8px 24px var(--red-glow);
      margin-bottom: 16px;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
      animation: logoPulse 3s ease-in-out infinite;
    }

    .logo-wrap:hover {
      transform: scale(1.08) rotate(-3deg);
      box-shadow: 0 12px 36px var(--red-glow);
    }

    @keyframes logoPulse {
      0%, 100% { box-shadow: 0 8px 24px var(--red-glow); }
      50% { box-shadow: 0 8px 32px rgba(211, 47, 47, 0.45); }
    }

    .logo-wrap img {
      width: 44px;
      height: 44px;
      object-fit: contain;
      filter: brightness(0) invert(1);
    }

    .card-header-area h1 {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 28px;
      font-weight: 700;
      color: var(--gray-dark);
      margin-bottom: 6px;
      letter-spacing: -0.5px;
    }

    .card-header-area .subtitle {
      font-size: 14px;
      color: var(--gray-light);
      font-weight: 400;
    }

    .nav-links {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 12px;
    }

    .nav-links a {
      font-size: 13px;
      color: var(--gray-mid);
      text-decoration: none;
      padding: 4px 10px;
      border-radius: 6px;
      transition: all 0.25s ease;
      font-weight: 500;
    }

    .nav-links a:hover {
      color: var(--red-primary);
      background: var(--red-soft);
    }

    .nav-links .sep {
      color: var(--gray-light);
      font-size: 11px;
    }

    /* === FORM BODY === */
    .card-body-area {
      padding: 8px 40px 40px;
    }

    /* Form Row */
    .form-row-custom {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 16px;
    }

    .form-row-custom.full {
      grid-template-columns: 1fr;
    }

    /* Form Group */
    .fg {
      position: relative;
    }

    .fg label {
      display: block;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--gray-dark);
      margin-bottom: 6px;
      letter-spacing: 0.3px;
      text-transform: uppercase;
    }

    .fg label .required-star {
      color: var(--red-primary);
      margin-left: 2px;
    }

    .input-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .input-wrap .input-icon {
      position: absolute;
      left: 14px;
      font-size: 14px;
      color: var(--gray-light);
      pointer-events: none;
      transition: color 0.25s ease;
      z-index: 2;
    }

    .input-wrap input {
      width: 100%;
      height: 48px;
      padding: 0 14px 0 42px;
      border: 1.5px solid rgba(183, 28, 28, 0.12);
      border-radius: var(--radius-sm);
      background: rgba(255, 255, 255, 0.8);
      font-family: 'Outfit', sans-serif;
      font-size: 14px;
      font-weight: 400;
      color: var(--gray-dark);
      outline: none;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .input-wrap input::placeholder {
      color: var(--gray-light);
      font-weight: 300;
    }

    .input-wrap input:focus {
      border-color: var(--red-primary);
      background: var(--white-pure);
      box-shadow: 0 0 0 4px var(--red-soft), 0 2px 8px rgba(211, 47, 47, 0.08);
    }

    .input-wrap input:focus ~ .input-icon,
    .input-wrap input:focus + .input-icon {
      color: var(--red-primary);
    }

    /* When icon comes before input */
    .input-wrap input:focus ~ .input-icon {
      color: var(--red-primary);
    }

    .input-wrap input[readonly] {
      background: var(--white-muted);
      cursor: default;
      color: var(--gray-mid);
    }

    /* Sponsor status indicator */
    .sponsor-status {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 14px;
      opacity: 0;
      transition: all 0.3s ease;
    }

    .sponsor-status.show { opacity: 1; }
    .sponsor-status.valid { color: #2E7D32; }
    .sponsor-status.invalid { color: var(--red-primary); }
    .sponsor-status.loading { color: var(--gray-light); animation: spin 1s linear infinite; }

    @keyframes spin {
      to { transform: translateY(-50%) rotate(360deg); }
    }

    /* Password toggle */
    .pwd-toggle {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--gray-light);
      cursor: pointer;
      font-size: 14px;
      padding: 4px;
      transition: color 0.25s ease;
      z-index: 2;
    }

    .pwd-toggle:hover {
      color: var(--red-primary);
    }

    /* Password match message */
    .pwd-msg {
      font-size: 12px;
      margin-top: 4px;
      min-height: 16px;
      transition: all 0.3s ease;
    }

    .pwd-msg.match { color: #2E7D32; }
    .pwd-msg.no-match { color: var(--red-primary); }

    /* === DIVIDER === */
    .form-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
      margin: 20px 0;
    }

    /* === BOTTOM ACTIONS === */
    .bottom-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 24px;
      gap: 16px;
    }

    .login-link {
      font-size: 13.5px;
      color: var(--gray-mid);
      text-decoration: none;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      border-radius: var(--radius-sm);
      transition: all 0.25s ease;
      white-space: nowrap;
    }

    .login-link:hover {
      color: var(--red-primary);
      background: var(--red-soft);
    }

    .login-link i {
      font-size: 12px;
      transition: transform 0.25s ease;
    }

    .login-link:hover i {
      transform: translateX(-3px);
    }

    /* Submit Button */
    .btn-submit {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-width: 180px;
      height: 50px;
      padding: 0 32px;
      border: none;
      border-radius: var(--radius-sm);
      background: linear-gradient(135deg, var(--red-deep), var(--red-mid));
      color: var(--white-pure);
      font-family: 'Outfit', sans-serif;
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 0.3px;
      cursor: pointer;
      overflow: hidden;
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 4px 16px var(--red-glow);
    }

    .btn-submit::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, var(--red-mid), var(--red-light));
      opacity: 0;
      transition: opacity 0.35s ease;
    }

    .btn-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px var(--red-glow);
    }

    .btn-submit:hover::before {
      opacity: 1;
    }

    .btn-submit:active {
      transform: translateY(0) scale(0.98);
    }

    .btn-submit span,
    .btn-submit i {
      position: relative;
      z-index: 1;
    }

    .btn-submit .btn-shine {
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: none;
      z-index: 1;
    }

    .btn-submit:hover .btn-shine {
      animation: shineSlide 0.6s ease forwards;
    }

    @keyframes shineSlide {
      to { left: 100%; }
    }

    /* === TOAST NOTIFICATION === */
    .toast-container {
      position: fixed;
      top: 24px;
      right: 24px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .toast-msg {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 20px;
      border-radius: var(--radius-sm);
      background: var(--white-pure);
      border: 1px solid var(--border-subtle);
      box-shadow: 0 8px 32px rgba(0,0,0,0.1);
      font-size: 13.5px;
      font-weight: 500;
      color: var(--gray-dark);
      animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
      max-width: 340px;
    }

    .toast-msg.error { border-left: 3px solid var(--red-primary); }
    .toast-msg.error i { color: var(--red-primary); }
    .toast-msg.success { border-left: 3px solid #2E7D32; }
    .toast-msg.success i { color: #2E7D32; }

    .toast-msg.out {
      animation: toastOut 0.3s ease forwards;
    }

    @keyframes toastIn {
      from { opacity: 0; transform: translateX(40px) scale(0.95); }
      to { opacity: 1; transform: translateX(0) scale(1); }
    }

    @keyframes toastOut {
      to { opacity: 0; transform: translateX(40px) scale(0.95); }
    }

    /* === STAGGER ANIMATION FOR FORM ROWS === */
    .form-row-custom {
      opacity: 0;
      transform: translateY(16px);
      animation: rowSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .form-row-custom:nth-child(1) { animation-delay: 0.15s; }
    .form-row-custom:nth-child(2) { animation-delay: 0.25s; }
    .form-row-custom:nth-child(3) { animation-delay: 0.35s; }
    .form-row-custom:nth-child(4) { animation-delay: 0.45s; }
    .form-row-custom:nth-child(5) { animation-delay: 0.55s; }

    @keyframes rowSlideIn {
      to { opacity: 1; transform: translateY(0); }
    }

    /* === RESPONSIVE === */
    @media (max-width: 768px) {
      .page-wrapper {
        padding: 24px 12px;
        align-items: flex-start;
        padding-top: 32px;
      }

      .reg-card {
        border-radius: var(--radius-lg);
      }

      .card-header-area {
        padding: 28px 24px 20px;
      }

      .card-header-area h1 {
        font-size: 24px;
      }

      .card-body-area {
        padding: 8px 24px 28px;
      }

      .form-row-custom {
        grid-template-columns: 1fr;
        gap: 14px;
      }

      .bottom-actions {
        flex-direction: column-reverse;
        gap: 12px;
      }

      .btn-submit {
        width: 100%;
        min-width: unset;
      }

      .login-link {
        width: 100%;
        justify-content: center;
      }

      .bg-scene::before {
        width: 400px;
        height: 400px;
        top: -120px;
        right: -100px;
      }

      .bg-scene::after {
        width: 300px;
        height: 300px;
        bottom: -80px;
        left: -60px;
      }
    }

    @media (max-width: 400px) {
      .card-header-area {
        padding: 24px 18px 16px;
      }

      .card-body-area {
        padding: 4px 18px 24px;
      }

      .logo-wrap {
        width: 60px;
        height: 60px;
        border-radius: 16px;
      }

      .logo-wrap img {
        width: 36px;
        height: 36px;
      }

      .card-header-area h1 {
        font-size: 22px;
      }

      .input-wrap input {
        height: 44px;
        font-size: 13px;
      }
    }

    @media (min-width: 992px) {
      .page-wrapper {
        padding: 60px 24px;
      }
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* Focus visible for accessibility */
    .input-wrap input:focus-visible {
      outline: 2px solid var(--red-primary);
      outline-offset: 2px;
    }

    .btn-submit:focus-visible,
    .login-link:focus-visible,
    .nav-links a:focus-visible {
      outline: 2px solid var(--red-primary);
      outline-offset: 2px;
    }