/* =========================================================
   DONYLOGIC™ ID — Account Console Stylesheet
   iOS 26 Liquid Glassmorphism · Dual Mode
   ========================================================= */

:root {
  --bg-base: #06070b;
  --panel: rgba(15, 20, 32, 0.78);
  --border: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(99, 102, 241, 0.6);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-cyan: #38bdf8;
  --accent-purple: #8b5cf6;
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", monospace;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

[data-theme="light"] {
  --bg-base: #edf2f7;
  --panel: rgba(255, 255, 255, 0.88);
  --border: rgba(100, 116, 139, 0.28);
  --border-focus: rgba(99, 102, 241, 0.8);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.auth-body {
  margin: 0;
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(1000px circle at 50% -10%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(900px circle at 85% 35%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(1100px circle at 15% 75%, rgba(56, 189, 248, 0.12), transparent 65%),
    linear-gradient(180deg, #06070b 0%, #090c15 50%, #05060a 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

[data-theme="light"] body.auth-body {
  background-color: #edf2f7;
  background-image: 
    radial-gradient(1100px circle at 50% -10%, rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(900px circle at 85% 30%, rgba(168, 85, 247, 0.10), transparent 60%),
    radial-gradient(1000px circle at 15% 75%, rgba(56, 189, 248, 0.10), transparent 65%),
    linear-gradient(180deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
}

/* Ambient backdrop */
.auth-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.auth-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 32, 0.65);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
}

[data-theme="light"] .auth-header {
  background: rgba(255, 255, 255, 0.75);
}

.auth-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Vertical Stack */
.nav-brand-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-brand-link {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  line-height: 1 !important;
}

.nav-brand-logo {
  height: 22px !important;
  width: auto !important;
  max-width: 135px !important;
  display: block !important;
  object-fit: contain !important;
}

[data-theme="light"] .nav-brand-logo {
  filter: invert(1);
}

.nav-brand-service {
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  color: var(--text-primary) !important;
  font-family: var(--font-main) !important;
  line-height: 1.1 !important;
}

.nav-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-return-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Main Container & Card */
.auth-main {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 18px 80px;
  min-height: calc(100vh - 72px);
}

.card.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}

h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h2 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin: 26px 0 10px;
}

p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 8px 0;
}

.id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Inputs */
input {
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.94rem;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] input {
  background: rgba(0, 0, 0, 0.03);
}

input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 16px rgba(99, 102, 241, 0.3);
}

/* 3D Tactile Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  width: 100%;
  margin-top: 4px;
}

.btn:hover {
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn:active {
  transform: scale(0.985);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn.ghost:active {
  transform: scale(0.985);
}

/* Code Display for Telegram Link */
.code {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-align: center;
  padding: 16px 20px;
  border: 1px dashed var(--accent);
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-md);
  margin: 14px 0;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.err {
  color: #f43f5e;
  font-size: 0.86rem;
  margin-top: 6px;
  font-weight: 600;
}

.ok {
  color: #10b981;
  font-size: 0.86rem;
  margin-top: 6px;
  font-weight: 600;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .auth-header {
    padding: 12px 16px;
  }
  .card.auth-card {
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }
}
