/* Гостевая страница входа / регистрации (Dev-Meta layout, стиль csmylove) */
:root {
  --auth-accent: #c75b3a;
  --auth-accent-hover: #a34428;
  --auth-accent-light: #e8957a;
}

body:has(.auth-index-page) .version_fixed {
  display: none !important;
}

.auth-index-page {
  margin: 0;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background-color: #0a0a0b;
  background-image: linear-gradient(145deg, rgba(10, 10, 11, 0.92) 0%, rgba(30, 18, 24, 0.88) 100%),
    url("../img/auth_back.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

.auth-index-page *,
.auth-index-page *::before,
.auth-index-page *::after {
  box-sizing: border-box;
}

.auth_wrapper {
  width: 100%;
  max-width: 920px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth_left {
  width: 45%;
  padding: 36px 32px;
  background: rgba(10, 10, 10, 0.65);
}

.auth_left h1 {
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.auth_left .auth_lead {
  opacity: 0.92;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.auth_left .block_servers {
  margin: 12px 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 220px;
  overflow-y: auto;
}

.auth_left .block_servers #servers {
  padding: 8px;
  font-size: 12px;
}

.benefit {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.benefit a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.2s;
}

.benefit a:hover {
  opacity: 0.85;
}

.benefit i {
  font-size: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.auth_social_block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth_footer_note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.auth_right {
  width: 55%;
  padding: 36px 32px;
}

.auth_tabs {
  display: flex;
  padding: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 22px;
}

.auth_tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  color: #bbb;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}

.auth_tabs button.active {
  background: var(--auth-accent);
  color: #fff;
}

.auth_tab_content {
  display: none;
}

.auth_tab_content.active {
  display: block;
}

.auth-index-page .input_group {
  margin-bottom: 16px;
  position: relative;
}

.auth-index-page .input_group input {
  width: 100%;
  padding: 14px 15px 14px 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  transition: 0.2s;
  font-family: inherit;
}

.auth-index-page .input_group input::placeholder {
  color: #aaa;
}

.auth-index-page .input_group input:focus {
  outline: none;
  border-color: var(--auth-accent);
  background: rgba(255, 255, 255, 0.12);
}

.auth-index-page .input_group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #ccc;
  pointer-events: none;
}

.auth-index-page .submit_btn {
  width: 100%;
  padding: 14px;
  background: var(--auth-accent);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}

.auth-index-page .submit_btn:hover {
  background: var(--auth-accent-hover);
}

.auth-index-page .forgot_pass {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--auth-accent-light);
  font-weight: 600;
}

.auth-index-page .forgot_pass:hover {
  color: #fff;
}

.auth-index-page #result {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}

.auth_line {
  margin: 18px 0;
  text-align: center;
  font-size: 12px;
  color: #aaa;
  position: relative;
}

.auth_line::before,
.auth_line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth_line::before {
  left: 0;
}
.auth_line::after {
  right: 0;
}

.auth_socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth_socials a {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ddd !important;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  transition: 0.2s;
}

.auth_socials a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

/* Форма регистрации (detailed-profile) внутри правой колонки */
.auth-index-page .auth_right .flex_authorization_page {
  margin: 0;
  display: block;
}

.auth-index-page .auth_right .block.authorization {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.auth-index-page .auth_right .authorization_welcome .text_welcome {
  color: #fff;
  font-size: 18px;
}

.auth-index-page .auth_right .authorization_welcome .second_welcome {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.auth-index-page .auth_right .form_control_auth {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 2px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  color: #fff !important;
}

.auth-index-page .auth_right .form_control_auth:focus {
  border-color: var(--auth-accent) !important;
}

.auth-index-page .auth_right .login_account_btn {
  width: 100%;
  border-radius: 12px !important;
  background: var(--auth-accent) !important;
  border: none !important;
}

.auth-index-page .auth_right .login_account_btn:hover {
  background: var(--auth-accent-hover) !important;
}

.auth-index-page .auth_right .input_login i {
  color: #ccc !important;
}

@media (max-width: 768px) {
  .auth-index-page {
    padding: 16px 12px;
    align-items: flex-start;
  }

  .auth_wrapper {
    flex-direction: column;
    border-radius: 16px;
  }

  .auth_left,
  .auth_right {
    width: 100%;
    padding: 24px 20px;
  }

  .auth_left .block_servers {
    max-height: 160px;
  }
}
