/* =========================================================
   Cabinet — Auth pages (login, register, reset)
   ========================================================= */

/* Полноэкранный враппер */
.cab-auth__wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cab-content-bg);
  padding: 1.5rem;
}

/* Карточка */
.cab-auth__card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--cab-radius);
  border: 1px solid var(--cab-border);
  padding: 2.5rem 2rem;
}

/* Лого */
.cab-auth__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.cab-auth__logo-icon {
  font-size: 1.4rem;
  color: var(--cab-primary);
}

.cab-auth__logo-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cab-text);
}

/* Заголовок */
.cab-auth__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cab-text);
  margin: 0 0 1.5rem;
}

/* Форма */
.cab-auth__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Поле */
.cab-auth__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cab-auth__label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cab-auth__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cab-text);
}

.cab-auth__forgot {
  font-size: 0.8rem;
  color: var(--cab-primary);
  text-decoration: none;
}

.cab-auth__forgot:hover {
  text-decoration: underline;
}

/* Input */
.cab-auth__input {
  width: 100%;
  padding: 0.6rem 0.875rem;
  font-size: 0.9rem;
  color: var(--cab-text);
  background: #fff;
  border: 1px solid var(--cab-border);
  border-radius: calc(var(--cab-radius) - 2px);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cab-auth__input:focus {
  border-color: var(--cab-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cab-primary) 15%, transparent);
}

.cab-auth__input--error {
  border-color: #ef4444;
}

/* Ошибки */
.cab-auth__error {
  font-size: 0.8rem;
  color: #ef4444;
}

.cab-auth__alert {
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: calc(var(--cab-radius) - 2px);
}

/* Кнопка submit */
.cab-auth__submit {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: var(--cab-primary);
  border: none;
  border-radius: calc(var(--cab-radius) - 2px);
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.25rem;
}

.cab-auth__submit:hover {
  background: var(--cab-primary-dark);
}

/* Разделитель */
.cab-auth__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--cab-text-muted);
  font-size: 0.8rem;
}

.cab-auth__divider::before,
.cab-auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cab-border);
}

/* Social кнопки */
.cab-auth__social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cab-auth__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cab-text);
  background: #fff;
  border: 1px solid var(--cab-border);
  border-radius: calc(var(--cab-radius) - 2px);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.cab-auth__social-btn:hover {
  background: var(--cab-content-bg);
  border-color: #94a3b8;
  color: var(--cab-text);
}

.cab-auth__social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Footer link (sign in / sign up) */
.cab-auth__footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--cab-text-muted);
}

.cab-auth__link {
  color: var(--cab-primary);
  text-decoration: none;
  font-weight: 500;
}

.cab-auth__link:hover {
  text-decoration: underline;
}
