/* =========================================
   СТРАНИЦА АВТОРИЗАЦИИ (Auth)
   ========================================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, rgba(0, 212, 170, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(108, 92, 231, 0.08), transparent 50%),
              var(--color-bg, #0a0a0f);
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text, #ffffff);
}

.auth-logo .nav-logo-icon {
  font-size: 1.75rem;
  color: var(--color-primary, #00d4aa);
}

.auth-logo span:last-child {
  color: var(--color-primary, #00d4aa);
}

.auth-card {
  width: 100%;
  background: var(--color-surface, #12121a);
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Tabs --- */
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-muted, #a0a0b0);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: var(--color-text, #ffffff);
}

.auth-tab.active {
  background: var(--color-primary, #00d4aa);
  color: #000000;
  font-weight: 600;
}

/* --- Forms --- */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.auth-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted, #a0a0b0);
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 0.875rem 1rem;
  color: var(--color-text, #ffffff);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary, #00d4aa);
  background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
  color: var(--color-text-muted, #a0a0b0);
  opacity: 0.5;
}

/* --- Password Toggle --- */
.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-text-muted, #a0a0b0);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--color-text, #ffffff);
}

.password-toggle.visible {
  color: var(--color-primary, #00d4aa);
}

/* --- Buttons --- */
.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  min-height: 48px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Footer --- */
.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  text-align: center;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted, #a0a0b0);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.auth-back-link:hover {
  color: var(--color-primary, #00d4aa);
}

/* --- Mobile --- */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-logo {
    font-size: 1.25rem;
  }
}