.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 40px 20px;
}

/* Background Effects - Simplified for Flat Look */
.auth-bg-glow {
  display: none;
}

.auth-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #13141c; /* Solid Flat Background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px; /* Sharp Corners */
  padding: 48px;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05); /* Minimalist Flat Shadow */
  animation: authFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authFadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  height: 50px;
  margin-bottom: 24px;
}

.auth-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 15px;
}

.auth-form {
  display: grid;
  gap: 24px;
}

.form-group {
  display: grid;
  gap: 10px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #8e95b0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 4px;
}

.form-input-wrapper {
  position: relative;
}

.phone-field {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 12px;
}

.phone-code-wrapper,
.phone-number-wrapper {
  min-width: 0;
}

.phone-code-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  height: 56px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px; /* Sharp Corners */
  padding: 0 20px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
}

.form-input:focus,
.phone-dropdown-trigger:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(158, 37, 255, 0.15);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.phone-dropdown {
  position: relative;
}

.phone-dropdown-trigger {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  font: inherit;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.phone-dropdown-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.phone-flag-icon {
  width: 22px;
  display: inline-block;
  flex: 0 0 22px;
  font-size: 18px;
  line-height: 1;
}

.phone-code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.phone-dropdown-caret {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: transform 0.25s ease;
}

.phone-dropdown.is-open .phone-dropdown-caret {
  transform: rotate(180deg);
}

.phone-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 156px;
  display: grid;
  gap: 4px;
  padding: 6px;
  background: rgba(14, 16, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  transform-origin: top left;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

.phone-dropdown.is-open .phone-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.phone-dropdown-option {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.phone-dropdown-option:hover,
.phone-dropdown-option.is-selected {
  background: rgba(255, 255, 255, 0.09);
}

.phone-dropdown-option.is-selected .phone-option-code {
  color: #fff;
}

.phone-option-code {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-btn {
  width: 100%;
  height: 56px;
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 4px; /* Sharp Corners */
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--accent-purple);
}

/* Micro-interactions */
.auth-card::before {
  display: none;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 32px 20px;
  }

  .phone-field {
    grid-template-columns: 1fr;
  }
}
