/* ============================================================
   klukvaCloud — Auth pages (sign in / sign up)
   ============================================================ */

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.auth-aside {
  position: relative;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  padding: clamp(var(--sp-6), 5vw, var(--sp-9));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-8);
  overflow: hidden;
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 40% 40%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 40% 40%, black, transparent 80%);
  pointer-events: none;
}
.auth-aside::after {
  content: "";
  position: absolute;
  inset: auto -20% -20% auto;
  width: 580px; height: 580px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-500) 50%, transparent), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.auth-aside .brand { color: var(--text-inverse); position: relative; z-index: 1; font-size: 1.25rem; }
.auth-aside .pitch { position: relative; z-index: 1; max-width: 48ch; margin-block: auto; }
.auth-aside .pitch h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(2.1rem, 3.6vw, var(--fs-3xl));
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
}
.auth-aside .pitch p { 
  color: color-mix(in srgb, var(--text-inverse) 75%, transparent); 
  margin-top: var(--sp-4); 
  font-size: clamp(1rem, 1.4vw, var(--fs-md));
  line-height: var(--lh-snug);
}

.aside-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.92);
  width: fit-content;
  margin-bottom: var(--sp-5);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.aside-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 1.8vw, var(--fs-xl));
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

.aside-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: var(--sp-6) var(--gutter);
}
.auth-topbar { display: flex; align-items: center; justify-content: space-between; }
.auth-card {
  margin: auto;
  width: 100%;
  max-width: 410px;
  padding-block: var(--sp-6);
}
.auth-card h1 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: var(--tracking-snug); }
.auth-card .sub { color: var(--text-muted); margin-top: var(--sp-2); font-size: var(--fs-sm); }
.auth-card form { margin-top: var(--sp-6); }
.auth-card .btn { margin-top: var(--sp-5); }

.oauth-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-5); }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.72rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.oauth-btn:hover { background: var(--surface-2); border-color: var(--text); transform: translateY(-1px); }
.oauth-btn:active { transform: translateY(0); }
.oauth-btn svg { width: 18px; height: 18px; }

.auth-sep { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0; color: var(--text-subtle); font-size: var(--fs-xs); }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-alt { margin-top: var(--sp-6); text-align: center; font-size: var(--fs-sm); color: var(--text-muted); }
.auth-alt a { color: var(--text-brand); font-weight: var(--fw-medium); }
.auth-alt a:hover { text-decoration: underline; }

.form-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-4); }
.form-row a { font-size: var(--fs-sm); color: var(--text-brand); }
.form-row a:hover { text-decoration: underline; }

/* ---------- Auth Footer ---------- */
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
@media (max-width: 600px) {
  .auth-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
  }
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}
.auth-legal {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.auth-legal a {
  color: var(--text-subtle);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.auth-legal a:hover {
  color: var(--text-brand);
  text-decoration: underline;
}
.auth-legal .sep {
  color: var(--border-strong);
}

@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* ---------- Notice Card (Closed Registration) ---------- */
.notice-card {
  text-align: center;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  animation: card-fade-in 0.4s var(--ease-out) both;
}
.notice-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-500);
  display: grid;
  place-items: center;
  margin: 0 auto var(--sp-5);
}
:root[data-theme="dark"] .notice-icon {
  background: rgba(180, 39, 66, 0.15);
}
.notice-icon svg {
  width: 28px;
  height: 28px;
}
.notice-text {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.notice-footer {
  display: flex;
  justify-content: center;
}

@keyframes noticeCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.auth-card.notice-card {
  animation: noticeCardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
