/* InstantCMS: templates/gamecenter/controllers/auth/styles.css */

body.gc-sec-auth {
  min-height: 100vh;
  overflow: hidden;
  background: #08121b;
}

body.gc-sec-auth header,
body.gc-sec-auth footer,
body.gc-sec-auth .breadcrumb,
body.gc-sec-auth nav[aria-label="breadcrumb"],
body.gc-sec-auth #scroll-top,
body.gc-sec-auth .icms-cookiealert {
  display: none !important;
}

body.gc-sec-auth .auth-layout {
  position: fixed;
  inset: 0;
  z-index: 4000;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.12fr) minmax(440px, 0.88fr);
}

.auth-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 36px clamp(28px, 5vw, 72px);
  overflow: hidden;
  flex-direction: column;
}

.auth-visual__background,
.auth-visual__shade {
  position: absolute;
  inset: 0;
}

.auth-visual__background {
  background-color: #08121b;
  background-image: var(--gc-auth-visual, url("../../images/auth-visual.jpg"));
  background-position: 60% center;
  background-size: cover;
  transform: scale(1.015);
}

.auth-visual__shade {
  background:
    linear-gradient(90deg, rgba(4, 12, 19, 0.88), rgba(4, 12, 19, 0.18)),
    linear-gradient(0deg, rgba(4, 12, 19, 0.9), transparent 55%),
    linear-gradient(180deg, rgba(4, 12, 19, 0.45), transparent 30%);
}

.auth-logo,
.auth-visual__content,
.auth-visual__footer {
  position: relative;
  z-index: 2;
}

.auth-logo .logo__wordmark,
.auth-mobile-logo .logo__wordmark {
  display: block;
  height: 58px;
  max-height: 58px;
  max-width: min(360px, 82vw);
  object-fit: contain;
  object-position: left center;
}

.auth-visual__content {
  max-width: 620px;
  margin-top: auto;
  margin-bottom: auto;
}

.auth-visual .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #83d8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-visual .eyebrow::before {
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.auth-visual h1 {
  margin: 16px 0 18px;
  color: #fff;
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.auth-visual h1 span {
  color: transparent;
  background: linear-gradient(90deg, #fff, #7edbff);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-visual__content > p {
  margin: 0;
  color: #9aadb9;
  font-size: 15px;
}

.auth-community {
  display: flex;
  margin-top: 32px;
  align-items: center;
  gap: 12px;
}

.auth-avatar-stack {
  display: flex;
  padding-left: 8px;
}

.auth-avatar-stack .post-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border: 2px solid #132532;
  border-radius: 50%;
  color: #07141d;
  font-size: 8px;
  font-weight: 800;
  place-items: center;
}

.post-avatar--blue { background: linear-gradient(135deg, #73dfff, #3c7cc1); }
.post-avatar--green { background: linear-gradient(135deg, #a9e66d, #41957a); }
.post-avatar--purple { background: linear-gradient(135deg, #e093ff, #7453bf); }
.post-avatar--orange { background: linear-gradient(135deg, #ffb478, #bc5b66); }

.auth-community > div:last-child {
  display: flex;
  flex-direction: column;
}

.auth-community strong {
  color: #edf5f9;
  font-size: 13px;
}

.auth-community span {
  margin-top: 3px;
  color: #698092;
  font-size: 12px;
}

.auth-visual__footer {
  display: flex;
  color: #5c7284;
  gap: 20px;
  font-size: 12px;
}

.auth-visual__footer a {
  color: inherit;
  text-decoration: none;
}

.auth-visual__footer a:hover {
  color: #9cafbc;
}

.auth-panel {
  display: grid;
  min-height: 100vh;
  padding: 48px clamp(28px, 5vw, 72px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 90% 5%, rgba(40, 131, 176, 0.12), transparent 25rem),
    #09141e;
  place-items: center;
  overflow: auto;
}

.auth-card {
  width: min(420px, 100%);
}

.auth-mobile-logo {
  display: none;
}

.auth-welcome {
  color: #4bc2ee;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card__heading h2 {
  margin: 8px 0 6px;
  color: #edf5f9;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.auth-card__heading p {
  margin: 0;
  color: #6d8395;
  font-size: 13px;
}

.auth-tabs {
  display: flex;
  margin-top: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 24px;
}

.auth-tabs a {
  position: relative;
  padding: 0 0 12px;
  color: #657b8d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-tabs a:hover {
  color: #c5d6e2;
}

.auth-tabs a.is-active {
  color: #edf5f9;
}

.auth-tabs a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #4cc4f0;
  content: "";
}

.auth-form,
.gc-auth__form {
  padding-top: 18px;
}

.auth-card fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-card legend,
.auth-card .form-tabs > .nav-tabs {
  display: none;
}

.auth-card .form-tabs,
.auth-card .icms-form-body,
.auth-card .tab-pane,
.auth-card .tab-content {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-card .field {
  display: flex;
  margin: 0 0 16px;
  color: #879ba9;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.auth-card .field > label,
.auth-card .field .field_title {
  display: flex;
  color: #879ba9;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.auth-card .auth-forgot,
.auth-card .field > label a[href*="restore"] {
  color: #58c4e8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-left: auto;
}

.auth-card .asterisk,
.auth-card .required {
  color: #4bc2ee;
  font-weight: 700;
}

.auth-card .field.ft_checkbox a[href*="restore"] {
  display: none;
}

.auth-card .field input[type="text"],
.auth-card .field input[type="email"],
.auth-card .field input[type="password"],
.auth-card .field input[type="number"],
.auth-card .field select,
.auth-card .field textarea {
  height: 46px;
  padding: 0 12px 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #e1ebf0;
  background-color: #0c1923;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
  font-size: 14px;
  font-weight: 500;
}

.auth-card .field textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
}

.auth-card .field input::placeholder {
  color: #4f6577;
}

.auth-card .field input:focus,
.auth-card .field select:focus,
.auth-card .field textarea:focus {
  border-color: rgba(77, 191, 235, 0.4);
  outline: 0;
  box-shadow: none;
}

.auth-card .field input[name="login_email"],
.auth-card .field input[name="email"],
.auth-card .field input[name="nickname"],
.auth-card .field input[name="login"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566c7e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.auth-card .field input[name="email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566c7e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4zM4 7l8 6 8-6'/%3E%3C/svg%3E");
}

.auth-card .field input[type="password"],
.auth-card .field input[name="password1"],
.auth-card .field input[name="password2"],
.auth-card .field input[name="login_password"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566c7e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

.auth-card .icms-form__password-field {
  position: relative;
  display: block;
}

.auth-card .icms-form__password-field input {
  width: 100%;
  padding-right: 42px;
}

.auth-card .icms-form__password-field-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  color: #5d7385;
  transform: translateY(-50%);
  place-items: center;
}

.auth-card .icms-form__password-field-icon svg {
  width: 16px;
  height: 16px;
}

.password-strength {
  display: grid;
  margin-top: 2px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.password-strength i {
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #1b2d39;
}

.password-strength b {
  display: block;
  width: 0;
  height: 100%;
  background: #ef8a64;
  transition: width 180ms ease, background 180ms ease;
}

.password-strength span {
  color: #53697b;
  font-size: 11px;
  font-weight: 500;
}

.password-match {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

.password-match--ok {
  color: #57d78a;
}

.password-match--bad {
  color: #ef8a64;
}

.auth-card .field.ft_checkbox,
.auth-card .custom-checkbox,
.auth-card .form-check {
  flex-direction: row;
  align-items: flex-start;
  font-weight: 500;
  color: #718798;
}

.auth-card .field.ft_checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 8px 0 0;
  padding: 0;
  accent-color: #54c6ef;
  background: none;
}

.auth-card .buttons {
  display: flex;
  margin: 8px 0 0;
  flex-direction: column;
  gap: 10px;
}

.auth-card .button-submit,
.auth-card input.button-submit,
.auth-card .btn-primary,
.auth-card button[type="submit"] {
  display: flex;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  color: #07141d !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(115deg, #6ad4fa, #3cb3e8) !important;
  box-shadow: 0 12px 28px rgba(47, 169, 219, 0.16);
  font-size: 14px;
  font-weight: 800;
}

.auth-card .button-submit::after {
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307141d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

.auth-card .button-cancel,
.auth-card .btn-secondary {
  display: flex;
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #9eb3c2 !important;
  align-items: center;
  justify-content: center;
  background: #0d1a24 !important;
  font-size: 13px;
}

.auth-card .field a {
  color: #58c4e8;
  font-weight: 600;
}

.auth-divider {
  display: flex;
  margin: 22px 0 16px;
  color: #516779;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  content: "";
  flex: 1;
}

.social-auth {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.social-auth a,
.social-auth button {
  display: flex;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: #8599a9;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d1a24;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-switch-text {
  margin: 22px 0 0;
  color: #687e90;
  text-align: center;
  font-size: 13px;
}

.auth-switch-text a {
  color: #59c5e9;
  font-weight: 700;
  text-decoration: none;
}

.auth-security {
  display: flex;
  margin-top: 22px;
  color: #52687a;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
}

.auth-security svg {
  width: 14px;
  height: 14px;
  color: #62bd9a;
}

.auth-card .alert,
.auth-note {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.auth-alert {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(196, 92, 92, 0.35);
  border-radius: 8px;
  color: #ef8a64;
  background: rgba(196, 92, 92, 0.12);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.auth-alert--info,
.auth-alert--success {
  border-color: rgba(75, 194, 238, 0.28);
  color: #8fd4f0;
  background: rgba(75, 194, 238, 0.1);
}

.auth-card .field_error input,
.auth-card .field_error select {
  border-color: #c45c5c;
}

.auth-card .error_text,
.auth-card .invalid-feedback {
  display: block !important;
  color: #ef8a64;
  font-size: 12px;
  font-weight: 500;
}

.gc-auth-ajax {
  padding: 0;
}

@media (max-width: 900px) {
  body.gc-sec-auth {
    overflow: auto;
  }

  .auth-layout,
  body.gc-sec-auth .auth-layout {
    position: relative;
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    padding: 28px 24px 48px;
    border-left: 0;
    align-content: start;
    min-height: 100vh;
  }

  .auth-mobile-logo {
    display: inline-flex;
    margin-bottom: 36px;
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .auth-panel {
    padding-inline: 16px;
  }

  .auth-card__heading h2 {
    font-size: 26px;
  }
}

.auth-card .gc-math-captcha,
.auth-card .gc-email-captcha__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-card .gc-math-captcha input[type="number"],
.auth-card .gc-email-captcha input[name="emailcaptcha_answer"] {
  width: 120px;
  max-width: 120px;
  flex: 0 0 120px;
  padding-left: 12px;
  background-image: none;
}
