/* =========================================================
   AUTH PAGE — FINAL PREMIUM (LIGHT + DARK SHOWCASE)
   ========================================================= */

@import url("./branding.css");

/* =========================
   BASE
========================= */
.ta-auth-body {
  color: var(--ta-text);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--ta-primary) 8%, transparent), transparent 26%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--ta-secondary) 8%, transparent), transparent 28%),
    var(--ta-bg);
}

.ta-auth-main {
  min-height: calc(100vh - 200px);
}

/* =========================
   LAYOUT
========================= */
.ta-auth-section {
  padding: clamp(32px, 5vw, 64px) 0;
}

.ta-auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: var(--ta-radius-2xl);
  overflow: hidden;
  background: var(--ta-surface);
  border: 1px solid var(--ta-border);
  box-shadow: var(--ta-shadow-lg);
}

/* =========================
   SHOWCASE (DARK PREMIUM)
========================= */
.ta-auth-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4vw, 52px);

  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.25), transparent 40%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.2), transparent 40%),
    linear-gradient(160deg, #0b1020 0%, #121a3a 60%, #1e1b4b 100%);

  color: #fff;
}

.ta-auth-showcase-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

/* TEXT */
.ta-auth-kicker {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: var(--ta-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: #c7d2fe;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.ta-auth-showcase-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.ta-auth-showcase-desc {
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}

/* =========================
   PREMIUM BIG ICON
========================= */
.ta-auth-showcase-visual {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 1;
  pointer-events: none;
}

.ta-auth-showcase-visual i {
  font-size: 140px;
  background: linear-gradient(135deg, #6366f1, #a855f7, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.15;
  transform: rotate(-8deg);
  animation: taFloat 6s ease-in-out infinite;
}

.ta-auth-showcase-visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
  opacity: 0.4;
  z-index: -1;
}

/* Floating animation */
@keyframes taFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-12px) rotate(-8deg); }
}

/* =========================
   FEATURES (GLASS)
========================= */
.ta-auth-feature-list {
  display: grid;
  gap: 14px;
}

.ta-auth-feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: var(--ta-radius-lg);

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  transition: var(--ta-transition-fast);
}

.ta-auth-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.ta-auth-feature-item strong {
  color: #fff;
}

.ta-auth-feature-item p {
  color: rgba(255,255,255,0.7);
}

.ta-auth-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ta-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #a5b4fc;
}

/* =========================
   PANEL (RIGHT SIDE)
========================= */
.ta-auth-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4vw, 52px);
}

.ta-auth-panel {
  width: 100%;
  max-width: 440px;
  padding: 32px;
  border-radius: var(--ta-radius-xl);
  background: var(--ta-surface);
  border: 1px solid var(--ta-border);
  box-shadow: var(--ta-shadow-md);
}

/* =========================
   HEADER
========================= */
.ta-auth-panel-head {
  text-align: center;
  margin-bottom: 20px;
}

.ta-auth-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.ta-auth-subtitle {
  color: var(--ta-text-soft);
}

/* =========================
   FORM
========================= */
.ta-auth-form {
  display: grid;
  gap: 16px;
}

.ta-field {
  display: grid;
  gap: 6px;
}

.ta-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* INPUT */
.ta-input-group {
  position: relative;
}

.ta-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ta-text-faint);
}

.ta-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 42px;
  border-radius: var(--ta-radius-md);
  border: 1px solid var(--ta-border);
  background: var(--ta-surface);
  transition: var(--ta-transition-fast);
}

.ta-input:focus {
  border-color: var(--ta-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-primary) 20%, transparent);
}

/* PASSWORD BUTTON */
.ta-input-action {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
   REMEMBER + FORGOT
========================= */
.ta-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ta-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ta-text-soft);
  cursor: pointer;
}

.ta-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--ta-primary);
}

/* =========================
   BUTTON
========================= */
.ta-auth-submit {
  width: 100%;
  min-height: 48px;
  border-radius: var(--ta-radius-md);
  font-weight: 700;
  color: #fff;
  background: var(--ta-gradient-brand);
  border: none;
  cursor: pointer;
  transition: var(--ta-transition-fast);
}

.ta-auth-submit:hover {
  transform: translateY(-2px);
}

/* =========================
   GOOGLE BUTTON
========================= */
.ta-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.ta-divider::before,
.ta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ta-border);
}

.ta-divider span {
  margin: 0 10px;
  font-size: 12px;
  color: var(--ta-text-faint);
}

.ta-auth-google {
  width: 100%;
  min-height: 48px;
  border-radius: var(--ta-radius-md);
  border: 1px solid var(--ta-border);
  background: var(--ta-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ta-transition-fast);
}

.ta-auth-google img {
  width: 18px;
}

/* =========================
   FOOTER
========================= */
.ta-auth-footer {
  margin-top: 20px;
  text-align: center;
}

.ta-text-link {
  color: var(--ta-primary);
  font-weight: 600;
}

.ta-text-link:hover {
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .ta-auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ta-auth-showcase-visual i {
    font-size: 90px;
  }
}

@media (max-width: 600px) {
  .ta-auth-panel {
    padding: 24px;
  }
}