/* =======================================================================
 * style.css — стили формы входа (bitrix:system.auth.form, шаблон
 * "antehno_header") внутри выпадающей панели под иконкой "Личный кабинет"
 * в хидере. Сама панель (позиционирование, открытие/закрытие) стилизована
 * в общем style.css шаблона сайта (.account-dropdown / .account-dropdown-panel) —
 * здесь только содержимое самой формы.
 *
 * Подключается автоматически ядром Bitrix (файл style.css внутри папки
 * шаблона компонента подключается сам, без ручного <link>).
 * Переменные --orange/--navy/--gray-text/--line/--bg/--radius объявлены
 * в общем style.css шаблона сайта, который подключён в header.php раньше,
 * поэтому здесь они уже доступны.
 * ======================================================================= */

.auth-widget{width:260px;}

.auth-widget-form{display:flex;flex-direction:column;gap:12px;}

.auth-widget-field{display:flex;flex-direction:column;gap:5px;font-size:.82rem;color:var(--gray-text);}
.auth-widget-field input{
  font:inherit;
  font-size:.9rem;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--navy);
  background:#fff;
  transition:border-color .2s;
}
.auth-widget-field input:focus{outline:none;border-color:var(--orange);}

.auth-widget-remember{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:.8rem;
  color:var(--gray-text);
  cursor:pointer;
}
.auth-widget-remember input{width:15px;height:15px;flex:none;accent-color:var(--orange);}

.auth-widget-captcha{display:flex;flex-direction:column;gap:6px;}
.auth-widget-captcha img{border-radius:6px;border:1px solid var(--line);}
.auth-widget-captcha input{
  font:inherit;
  font-size:.9rem;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:8px;
}

.auth-widget-submit{
  font:inherit;
  font-size:.86rem;
  font-weight:700;
  padding:10px;
  border-radius:8px;
  border:none;
  color:#fff;
  background:var(--orange);
  cursor:pointer;
  transition:background .2s;
}
.auth-widget-submit:hover{background:var(--orange-dark);}

.auth-widget-links{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:.78rem;
}
.auth-widget-links a{color:var(--gray-text);}
.auth-widget-links a:hover{color:var(--orange-dark);}

.auth-widget-errors{
  font-size:.78rem;
  color:#d43f3f;
  background:#fdecec;
  border-radius:8px;
  padding:8px 10px;
  display:flex;
  flex-direction:column;
  gap:2px;
}

/* ---- состояние "авторизован" ---- */
.auth-widget-profile{display:flex;flex-direction:column;gap:10px;}
.auth-widget-greeting{font-size:.86rem;color:var(--navy);}
.auth-widget-greeting strong{font-weight:700;}
.auth-widget-link{
  font-size:.86rem;
  font-weight:700;
  color:var(--navy);
  padding:9px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.auth-widget-link:hover{color:var(--orange-dark);}
.auth-widget-logout-form{margin:0;}
.auth-widget-logout{
  font:inherit;
  font-size:.82rem;
  color:var(--gray-text);
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
}
.auth-widget-logout:hover{color:var(--orange-dark);}
