  *,
  *::before,
  *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }

  body {
      font-family: 'Segoe UI', system-ui, sans-serif;
      background: #f0f4f8;
      color: #0f172a;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
  }

  /* ── PAGE ── */
  .page {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 75px;
      margin-bottom: 75px;
      padding: 40px 16px;
  }

  .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      width: 100%;
      max-width: 900px;
  }

  @media (max-width: 768px) {
      .grid {
          grid-template-columns: 1fr;
      }
  }

  /* ── CARD ── */
  .card {
      background: #fff;
      border-radius: 20px;
      border: 1px solid #f1f5f9;
      box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
      padding: 32px;
  }

  /* ── FORM CARD ── */
  .form-logo {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 28px;
  }

  .form-logo-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: linear-gradient(135deg, #10b981, #059669);
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .form-logo-text {
      font-size: 14px;
      font-weight: 700;
      color: #0f172a;
  }

  .form-logo-text span {
      color: #10b981;
  }

  .lang-selector {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 20px;
  }

  .lang-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 20px;
      border: 1px solid #e2e8f0;
      background: #f8fafc;
      font-size: 12px;
      color: #64748b;
      cursor: pointer;
      transition: border-color .15s;
  }

  .lang-btn:hover {
      border-color: #94a3b8;
  }

  h1 {
      font-size: 22px;
      font-weight: 800;
      color: #0f172a;
      margin-bottom: 4px;
  }

  .subtitle {
      font-size: 13px;
      color: #64748b;
      margin-bottom: 24px;
  }

  .field {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 14px;
  }

  label {
      font-size: 11px;
      font-weight: 600;
      color: #374151;
  }

  .input-wrap {
      position: relative;
  }

  .input-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      pointer-events: none;
  }

  input {
      width: 100%;
      padding: 10px 14px 10px 38px;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      font-size: 13px;
      color: #0f172a;
      background: #f8fafc;
      outline: none;
      transition: border-color .15s, box-shadow .15s, background .15s;
      font-family: inherit;
  }

  input:focus {
      border-color: #3b82f6;
      background: #fff;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
  }

  input.valid {
      border-color: #10b981;
      background: #fff;
  }

  input.error {
      border-color: #ef4444;
  }

  .check-icon {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #10b981;
      display: none;
  }

  input.valid+.check-icon {
      display: flex;
  }

  .pw-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: #94a3b8;
      padding: 0;
      display: flex;
  }

  .pw-toggle:hover {
      color: #475569;
  }

  .error-msg {
      font-size: 11px;
      color: #ef4444;
      display: none;
  }

  .error-msg.show {
      display: block;
  }

  .forgot {
      text-align: right;
      margin-top: -6px;
      margin-bottom: 16px;
      font-size: 12px;
  }

  .forgot a {
      color: #3b82f6;
      font-weight: 500;
      text-decoration: none;
  }

  .forgot a:hover {
      text-decoration: underline;
  }

  .btn-submit {
      width: 100%;
      padding: 12px;
      background: linear-gradient(135deg, #3b82f6, #2563eb);
      color: #fff;
      border: none;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 14px rgba(59, 130, 246, .35);
      transition: opacity .15s, transform .15s;
      margin-bottom: 18px;
  }

  .btn-submit:hover {
      opacity: .9;
      transform: translateY(-1px);
  }

  .btn-submit:disabled {
      opacity: .7;
      cursor: not-allowed;
      transform: none;
  }

  .spinner {
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255, 255, 255, .4);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin .7s linear infinite;
  }

  @keyframes spin {
      to {
          transform: rotate(360deg);
      }
  }

  .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      color: #94a3b8;
      font-size: 12px;
  }

  .divider::before,
  .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: #e2e8f0;
  }

  .social-btns {
      display: flex;
      gap: 12px;
      margin-bottom: 18px;
  }

  .btn-social {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: #fff;
      font-size: 12px;
      font-weight: 600;
      color: #374151;
      cursor: pointer;
      transition: background .15s, border-color .15s;
  }

  .btn-social:hover {
      background: #f8fafc;
      border-color: #94a3b8;
  }

  .register-link {
      text-align: center;
      font-size: 12px;
      color: #64748b;
  }

  .register-link a {
      color: #3b82f6;
      font-weight: 600;
      text-decoration: none;
  }

  .register-link a:hover {
      text-decoration: underline;
  }

  /* ── RIGHT PANEL ── */
  .welcome-card {
      background: linear-gradient(145deg, #1e3a5f, #1a3050);
      color: #fff;
      border-radius: 20px;
      padding: 32px;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      gap: 20px;
      padding-bottom: 116px;
  }

  .blob1 {
      position: absolute;
      top: -60px;
      right: -60px;
      width: 176px;
      height: 176px;
      border-radius: 50%;
      background: rgba(59, 130, 246, .15);
      pointer-events: none;
  }

  .blob2 {
      position: absolute;
      bottom: -40px;
      left: -40px;
      width: 112px;
      height: 112px;
      border-radius: 50%;
      background: rgba(16, 185, 129, .12);
      pointer-events: none;
  }

  .secure-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 12px;
      border-radius: 20px;
      background: rgba(16, 185, 129, .2);
      border: 1px solid rgba(16, 185, 129, .3);
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: #6ee7b7;
      width: fit-content;
  }

  .welcome-title {
      font-size: 22px;
      font-weight: 800;
      line-height: 1.3;
  }

  .welcome-title span {
      color: #6ee7b7;
  }

  .welcome-desc {
      font-size: 13px;
      line-height: 1.6;
      color: rgba(255, 255, 255, .7);
  }

  .benefits {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }

  .benefit-item {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: rgba(255, 255, 255, .9);
  }

  .benefit-dot {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      flex-shrink: 0;
      background: rgba(16, 185, 129, .25);
      border: 1px solid rgba(16, 185, 129, .4);
      display: flex;
      align-items: center;
      justify-content: center;
  }

  /* ── TRUST CARD ── */
  .trust-card {
      background: #fff;
      border-radius: 20px;
      border: 1px solid #f1f5f9;
      box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
      padding: 20px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 16px;
  }

  .trust-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      text-align: center;
  }

  .trust-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .trust-label {
      font-size: 11px;
      font-weight: 700;
      color: #0f172a;
  }

  .trust-desc {
      font-size: 10px;
      color: #94a3b8;
      line-height: 1.4;
  }

  @media(max-width: 768px) {
      .welcome-card {
          padding-bottom: 32px;
      }
  }