:root {
  --color-purple: #7B61FF;
  --color-green: #98C99C;
  --color-charcoal: #252525;
  --bg-app: #121212;
  --text-primary: #FFFFFF;
  --text-secondary: #A3A3A3;
  --font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  --radius-md: 12px;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-family);
  position: fixed;
  inset: 0;
}

/* Background Vector Art */
.bg-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Layout Container */
.welcome-container {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  padding-top: max(8vh, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* Brand Header */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}

.brand-logo {
  width: 120px; 
  height: 120px;
  object-fit: contain;
}

.brand-text {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary); 
  margin-top: -12px; 
  margin-bottom: 12px;
}

.welcome-subtitle {
  font-size: 15px;
  color: var(--text-primary);
  opacity: 0.85;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  max-width: 320px;
}

/* Actions */
.action-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: auto;
}

.btn-primary, .btn-secondary {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, opacity 0.2s;
}

.btn-primary {
  background-color: var(--color-purple);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(123, 97, 255, 0.25);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
}

/* Modal Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: #1E1E24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 28px 24px 32px 24px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-sheet {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 15px;
  outline: none;
}

.auth-input:focus {
  border-color: var(--color-purple);
}

#auth-status {
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
  color: var(--text-secondary);
}
