/*
 * Стиль страниц входа и регистрации.
 * Один файл на оба экрана — они выглядят одинаково.
 * Все классы начинаются с xc-auth-, чтобы не пересекаться с theme.css чата.
 */

/* ===== страница ===== */
html.xc-auth-page, html.xc-auth-page body {
  margin: 0;
  min-height: 100%;
  background: url("../img/bgchat.gif") repeat #020436;
  color: #c0c0c0;
  font-family: "Times New Roman", Verdana, Arial, serif;
  font-size: 14px;
}

html.xc-auth-page #app,
.xc-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 74px;
  box-sizing: border-box;
}

/* ===== окно ===== */
.xc-auth-shell { width: 520px; }

.xc-auth-window {
  width: 520px;
  border: 1px solid #324a8a;
  background: url("../img/chatbg.gif") repeat #000000;
  box-shadow: inset 0 0 0 1px #0a1028, 0 0 16px #000;
}

/* шапка */
.xc-auth-head {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 9px;
  box-sizing: border-box;
  background: url("../img/bgchat.gif") repeat #020436;
  border-bottom: 1px solid #324a8a;
}

.xc-auth-head img {
  width: 176px;
  max-height: 58px;
  object-fit: contain;
}

.xc-auth-title {
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
}

.xc-auth-sub {
  color: #61adde;
  font-size: 13px;
  margin-top: 2px;
}

/* тело */
.xc-auth-body {
  padding: 18px 24px 20px;
  background: rgba(2, 48, 64, 0.72);
}

/* строка формы */
.xc-auth-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}

.xc-auth-row label {
  color: #d0d0d0;
  text-align: right;
}

.xc-auth-row input,
.xc-auth-row select {
  height: 22px;
  box-sizing: border-box;
  border: 1px solid #3d4976;
  background: #000000;
  color: #61adde;
  font: 14px "Times New Roman", serif;
  padding: 1px 4px;
}

.xc-auth-row input:focus {
  outline: 1px solid #61adde;
  outline-offset: 0;
}

/* подсказка */
.xc-auth-hint {
  color: #a0a0a0;
  font-size: 12px;
  margin: 8px 0 12px 155px;
  line-height: 1.25;
}

/* ошибка / успех */
.xc-auth-error {
  display: none;
  margin: 10px 0 12px 155px;
  color: #ff8080;
  font-weight: bold;
}

.xc-auth-ok {
  display: none;
  margin: 10px 0 12px 155px;
  color: #67ea91;
  font-weight: bold;
}

/* кнопки */
.xc-auth-actions {
  margin-left: 155px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.xc-auth-actions button,
.xc-auth-actions a {
  border: 1px solid #3d4976;
  background: #0b1920;
  color: #c0c0c0;
  font: 14px "Times New Roman", serif;
  padding: 3px 10px;
  cursor: pointer;
  text-decoration: none;
}

.xc-auth-actions button:hover,
.xc-auth-actions a:hover {
  color: #ffff00;
}

/* подвал окна */
.xc-auth-bottom {
  height: 22px;
  background: url("../img/bgchat.gif") repeat #020436;
  border-top: 1px solid #324a8a;
}

.xc-auth-note {
  text-align: center;
  color: #8080ff;
  margin-top: 12px;
  font-size: 12px;
}

/* ===== мобилки ===== */
@media (max-width: 560px) {
  html.xc-auth-page #app,
  .xc-auth-wrap {
    padding-top: 24px;
  }

  .xc-auth-shell,
  .xc-auth-window {
    width: calc(100vw - 24px);
  }

  .xc-auth-head {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .xc-auth-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .xc-auth-row label {
    text-align: left;
  }

  .xc-auth-actions,
  .xc-auth-hint,
  .xc-auth-error,
  .xc-auth-ok {
    margin-left: 0;
  }
}


/* ==========================================================
   XChat OAuth — Google / Яндекс / VK ID
   ========================================================== */

.xc-oauth-separator {
  display:flex;
  align-items:center;
  gap:10px;
  margin:18px 0 12px;
  color:#737da8;
  font-size:12px;
  text-align:center;
}

.xc-oauth-separator::before,
.xc-oauth-separator::after {
  content:"";
  flex:1;
  height:1px;
  background:#27345e;
}

.xc-oauth-separator span {
  white-space:nowrap;
}

.xc-oauth-buttons {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}

.xc-oauth-btn {
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  box-sizing:border-box;

  padding:7px 9px;

  border:1px solid #3d4976;
  border-radius:5px;

  background:#0b1920;
  color:#e7e7e7;

  text-decoration:none;
  font-family:Arial,Verdana,sans-serif;
  font-size:13px;

  cursor:pointer;
}

.xc-oauth-btn:hover {
  color:#ffff00;
  border-color:#6978ae;
  background:#10232d;
}

.xc-oauth-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width:22px;
  height:22px;

  box-sizing:border-box;
  padding:0 4px;

  border-radius:4px;

  font-family:Arial,Verdana,sans-serif;
  font-weight:700;
  font-size:12px;
}

.xc-oauth-google .xc-oauth-icon {
  background:#fff;
  color:#4285f4;
}

.xc-oauth-yandex .xc-oauth-icon {
  background:#fc3f1d;
  color:#fff;
}

.xc-oauth-vk .xc-oauth-icon {
  background:#0077ff;
  color:#fff;
}

.xc-oauth-welcome {
  margin:0 0 18px;
  padding:12px 14px;

  border:1px solid #2d3e70;
  border-radius:5px;

  background:rgba(25,42,80,.32);
  color:#c9cee6;

  font-size:13px;
  line-height:1.45;
}

.xc-oauth-nick-window {
  max-width:520px;
}

.xc-auth-link-button {
  border:0 !important;
  background:transparent !important;
  color:#8f9aca !important;
  padding-left:5px !important;
  padding-right:5px !important;
}

.xc-auth-link-button:hover {
  color:#ffff00 !important;
}

@media (max-width:560px) {
  .xc-oauth-buttons {
    grid-template-columns:1fr;
  }

  .xc-oauth-btn {
    min-height:42px;
  }
}
