/* Страница входа — Scribb v0.2.0 */

/* ========================================
   LAYOUT (одноколоночная, центрированная)
   ======================================== */

body.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ========================================
   HEADER (заголовок и подзаголовок)
   ======================================== */

.auth-header {
  text-align: center;
  margin-bottom: 32px;
  max-width: 480px;
}

.auth-header h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.auth-header .subtitle {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ========================================
   HERO (левая сторона) - REMOVED
   ======================================== */

/* Hero section removed per user request */
.hero {
  display: none;
}

/* ========================================
   AUTH SIDE (форма входа/регистрации)
   ======================================== */

.auth-side {
  width: 100%;
  max-width: 420px;
}

.card {
  width: min(420px, 100%);
  background: var(--panel-bg);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--panel-border);
}

/* ========================================
   ТАБЫ (вход/регистрация)
   ======================================== */

.tabs {
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(20, 33, 61, 0.06);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: 600 14px var(--font-family);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}

.tab:hover {
  background: rgba(20, 33, 61, 0.04);
}

.tab[aria-selected="true"] {
  background: var(--panel-bg);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(20, 33, 61, 0.15);
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ========================================
   FORGOT PASSWORD
   ======================================== */

.forgot-password {
  display: block;
  margin-top: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration-base) var(--ease-out);
  text-align: left;
}

.forgot-password:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.forgot-password[hidden] {
  display: none;
}

/* ========================================
   CHECKBOX (согласие на обработку данных)
   ======================================== */

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border: 1.5px solid var(--panel-border);
  border-radius: 999px;
  cursor: pointer;
  margin-top: 2px;
  appearance: none;
  background: var(--panel-bg);
  transition: all var(--duration-base) var(--ease-out);
}

.checkbox-label input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========================================
   CHOICES (выбор роли) - REMOVED
   ======================================== */

.choices {
  display: none; /* Removed role selection */
}

.choice {
  display: none; /* Removed role selection */
}

/* ========================================
   NOTICE
   ======================================== */

.notice {
  background: var(--accent-soft);
  color: var(--text-primary);
  border-radius: var(--radius-input);
  padding: 10px var(--space-md);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

/* ========================================
   ВЕРСИЯ
   ======================================== */

.auth-side .ver {
  position: static;
  display: block;
  margin-top: 16px;
  color: var(--text-tertiary);
  font-size: 12px;
  text-align: center;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 859px) {
  body.auth {
    padding: 28px 20px;
  }

  .auth-header {
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}


/* Ссылки в тексте согласия */
.checkbox-label a,
.checkbox-label a:visited,
.checkbox-label a:hover,
.checkbox-label a:focus {
  color: var(--text-primary);
}
