:root {
  --bg-main: #1a011e;
  --bg-section: #2a0332;
  --bg-card: rgba(42, 3, 50, 0.55);
  --bg-soft: #3a0446;
  --bg-light: #ffffff;

  --text-main: #ffffff;
  --text-muted: #d8b4e2;
  --text-dark: #1a011e;

  --border-color: rgba(216, 180, 226, 0.15);

  --btn-primary: #a855f7;
  --btn-primary-hover: #9333ea;

  --btn-secondary: rgba(255, 255, 255, 0.05);
  --btn-secondary-hover: rgba(255, 255, 255, 0.1);

  --btn-light: #ffffff;
  --btn-light-hover: #d5d5d5;

  /* Theme Auth Mappings */
  --color-primary: var(--btn-primary);
  --color-primary-hover: var(--btn-primary-hover);
  --bg-body: var(--bg-main);
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --woo-input-border: var(--border-color);
  --woo-input-bg: var(--bg-section);
  --bg-surface: var(--bg-section);
  --bg-surface-alt: var(--bg-soft);
  --woo-btn-bg: var(--btn-primary);
  --woo-btn-hover: var(--btn-primary-hover);
  --woo-btn-text: var(--text-main);
}

.ta-page {
  min-height: calc(100vh - 160px);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--color-primary) 12%, transparent), transparent 40%),
    radial-gradient(circle at bottom left, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent 40%),
    linear-gradient(rgba(128, 128, 128, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 128, 128, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg-body) 0%, color-mix(in srgb, var(--bg-body) 96%, #ffffff 4%) 100%);
  background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px, 100% 100%;
  background-position: center;
  padding: 30px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ta-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.ta-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  min-height: 500px;
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-color) 88%, transparent);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 70%, transparent), color-mix(in srgb, var(--bg-card) 95%, transparent));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -10px 0 30px rgba(0,0,0,0.03);
}

.ta-card > * {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

.ta-header {
  text-align: center;
  margin-bottom: 12px;
}

.ta-title {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.ta-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.ta-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.ta-visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  z-index: 0;
  transform: scale(1.05);
  transition: transform 0.15s linear;
  will-change: transform;
}

.ta-visual-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(0, 0, 0, 0.95) 100%);
  z-index: 1;
}

.ta-visual-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 40px 20px;
}

.ta-visual-content {
  text-align: center;
  width: 100%;
}

.ta-visual-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.ta-visual-text {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
  max-width: 90%;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.ta-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ta-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.ta-input-wrap {
  position: relative;
}

.ta-input-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--woo-input-border);
  background: var(--woo-input-bg);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.ta-input-wrap input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary) 40%, transparent);
  background: var(--bg-surface);
}

.ta-input-wrap input::-ms-reveal,
.ta-input-wrap input::-ms-clear {
  display: none;
}

.ta-toggle-pass {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.ta-toggle-pass:hover {
  background: var(--bg-surface-alt);
  color: var(--color-primary);
}

.ta-error {
  min-height: 16px;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
}

.ta-btn {
  position: relative;
  width: 100%;
  min-height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--woo-btn-bg), var(--woo-btn-hover));
  color: var(--woo-btn-text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.ta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--color-primary) 18%, transparent);
  filter: saturate(1.03);
}

.ta-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--border-color));
  box-shadow: none;
}

.ta-btn--outline:hover {
  background: color-mix(in srgb, var(--color-primary) 7%, var(--bg-surface));
  box-shadow: none;
}

.ta-btn-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ta-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ta-spin 0.8s linear infinite;
}

@keyframes ta-spin {
  to { transform: rotate(360deg); }
}

.ta-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 12px;
}

.ta-alert--success {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.ta-alert--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.ta-social-area {
  margin-top: 8px;
}

.ta-social-divider {
  position: relative;
  text-align: center;
  margin: 0 0 8px;
}

.ta-social-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline: 0;
  height: 1px;
  background: var(--border-color);
  transform: translateY(-50%);
}

.ta-social-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 14px;
  background: var(--bg-card);
  color: #98a2b3;
  font-size: 13px;
  font-weight: 700;
}

.ta-social-login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ta-social-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px;
  min-height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.ta-social-btn:hover {
  background: var(--bg-surface);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.ta-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-surface);
  border-radius: 8px;
  margin-inline-end: 6px;
  transition: background 0.3s ease;
}

.ta-social-btn:hover .ta-social-icon {
  background: var(--bg-card);
}

.ta-social-text {
  flex-grow: 1;
  text-align: center;
  padding-inline-end: 20px;
}

.ta-card-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
  text-align: center;
}

.ta-card-footer p {
  margin: 0;
  color: #98a2b3;
  font-size: 14px;
}

.ta-card-footer a {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: none;
}

.ta-card-footer a:hover {
  text-decoration: underline;
}


@media (max-width: 991px) {
  .ta-layout {
    grid-template-columns: 1fr;
    min-height: 500px;
  }
  .ta-visual {
    display: none;
  }
  .ta-card {
    padding: 22px 16px;
  }
  .ta-card > * {
    max-width: 100%;
  }
  .ta-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .ta-page {
    padding: 10px;
  }
  .ta-layout {
    border-radius: 18px;
  }
  .ta-card {
    padding: 18px 14px;
  }
  .ta-title {
    font-size: 22px;
  }
  .ta-input-wrap input,
  .ta-btn {
    min-height: 48px;
  }
  .ta-social-btn {
    min-height: 56px;
    font-size: 14px;
  }
  .ta-card-footer p {
    font-size: 14px;
  }
}

.ta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 16px;
}
.ta-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}
.ta-feature:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.4);
}
.ta-feature svg {
  color: var(--color-primary, #b282ff);
  filter: drop-shadow(0 0 4px rgba(178, 130, 255, 0.6));
}
.ta-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.ta-particle {
  position: absolute;
  background: var(--color-primary, #b282ff);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.6;
  animation: taFloatUp 10s linear infinite;
  box-shadow: 0 0 8px var(--color-primary, #b282ff);
}
@keyframes taFloatUp {
  0% { transform: translateY(100px) scale(0.5); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-100px) scale(1.2); opacity: 0; }
}

/* Register Specific CSS */
.ta-progress-wrap { margin-bottom: 8px; text-align: center; }
.ta-progress-text { font-size: 13px; color: var(--color-primary); font-weight: 800; margin-bottom: 8px; display: block; }
.ta-progress-bar { height: 4px; background: color-mix(in srgb, var(--border-color) 60%, transparent); border-radius: 4px; overflow: hidden; max-width: 150px; margin: 0 auto; }
.ta-progress-fill { height: 100%; background: var(--color-primary); border-radius: 4px; transition: width 0.3s ease; box-shadow: 0 0 8px var(--color-primary); }

.ta-pwd-strength-container { margin-top: 8px; padding: 12px; background: var(--bg-surface-alt); border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--border-color) 60%, transparent); }
.ta-strength-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ta-strength-bars { display: flex; gap: 4px; flex: 1; margin-inline-end: 12px; }
.ta-bar { height: 6px; flex: 1; background: var(--border-color); border-radius: 4px; transition: all 0.3s ease; }
#strength-label { font-size: 12px; font-weight: 800; min-width: 45px; text-align: left; }
.ta-pwd-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.req-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-secondary); font-weight: 700; transition: color 0.3s ease; }
.req-item svg { color: var(--border-color); transition: color 0.3s ease; }
.req-item.valid { color: #22c55e; }
.req-item.valid svg { color: #22c55e; }

.ta-terms-label { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; cursor: pointer; }
.ta-checkbox-wrap { position: relative; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.ta-checkbox-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.ta-checkbox-custom { position: absolute; inset: 0; border: 2px solid var(--border-color); border-radius: 6px; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.ta-checkbox-custom svg { opacity: 0; transform: scale(0.5); transition: all 0.2s ease; color: #fff; }
.ta-checkbox-wrap input:checked ~ .ta-checkbox-custom { background: var(--color-primary); border-color: var(--color-primary); }
.ta-checkbox-wrap input:checked ~ .ta-checkbox-custom svg { opacity: 1; transform: scale(1); }
.ta-terms-text { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.ta-terms-text a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.ta-terms-text a:hover { text-decoration: underline; }

.ta-trust-badge { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; background: color-mix(in srgb, #10b981 10%, transparent); border: 1px solid color-mix(in srgb, #10b981 20%, transparent); border-radius: 8px; color: #10b981; font-size: 11px; font-weight: 700; margin-top: 4px; }

.ta-success-screen { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg-card) 98%, transparent); z-index: 100; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; animation: fadeIn 0.4s ease forwards; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 24px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ta-success-content { max-width: 400px; width: 100%; }
.ta-success-icon { width: 80px; height: 80px; background: rgba(34, 197, 94, 0.1); color: #22c55e; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; box-shadow: 0 0 30px rgba(34, 197, 94, 0.2); }
.ta-success-icon svg { width: 40px; height: 40px; }
.ta-success-title { font-size: 26px; color: var(--text-primary); margin-bottom: 12px; font-weight: 900; }
.ta-success-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }
.ta-success-actions { display: flex; flex-direction: column; gap: 12px; }
