/* Public auth pages: mobile-focused overrides for index.php + signin.php. */

:root {
  color-scheme: only light;
  background: #F0F2F5;
  background-color: #F0F2F5;
}

html,
body.public-auth-body {
  background: #F0F2F5;
  background-color: #F0F2F5;
  color: #050505;
}

.signin-spacer {
  height: 72px;
}

.auth-page {
  width: 100%;
  margin: 0 auto;
}

.auth-message,
.auth-error {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.auth-message {
  background: #eef7f1;
  color: #236437;
}

.auth-error {
  margin-top: 8px;
  background: #fff0f0;
  color: #9b1c1c;
}

@media screen and (max-width: 900px) {
  :root,
  html,
  body,
  body.public-auth-body {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    overflow-x: hidden;
    color-scheme: only light;
    background: #F0F2F5 !important;
    background-color: #F0F2F5 !important;
    color: #050505 !important;
  }

  body.public-auth-body {
    min-height: 100vh !important;
  }

  .header_containerX {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box;
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(20, 31, 45, 0.12) !important;
    color-scheme: only light;
  }

  .header_divX {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 76px !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color-scheme: only light;
  }

  .logo {
    position: static !important;
    margin: 0 !important;
    min-width: 0;
  }

  .logo img {
    display: block;
    width: 158px !important;
    max-width: 58vw !important;
    height: auto !important;
  }

  .header_divX > div[style*="margin-left: 350px"],
  .beta_text {
    display: none !important;
  }

  .circle_menu {
    display: flex !important;
    width: auto !important;
    margin: 0 !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .dropdownX {
    display: flex !important;
    align-items: center !important;
  }

  .dropbtnX img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
  }

  .dropdown-contentX {
    left: auto !important;
    right: 0 !important;
    z-index: 20 !important;
  }

  .public-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 28px 14px 36px !important;
    min-height: calc(100vh - 76px) !important;
    box-sizing: border-box !important;
    background: #F0F2F5 !important;
    background-color: #F0F2F5 !important;
    color-scheme: only light;
  }

  .public-community-link {
    display: none !important;
  }

  .signin-spacer {
    display: none !important;
  }

  .auth-page {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    text-align: left !important;
    background: #F0F2F5 !important;
    background-color: #F0F2F5 !important;
    color-scheme: only light;
  }

  form.form_standard.signin-form {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: linear-gradient(#ffffff, #ffffff) !important;
    box-shadow: 0 12px 28px rgba(20, 31, 45, 0.12) !important;
    color: #1f2933 !important;
    color-scheme: only light;
  }

  .signin-form table,
  .signin-form tbody,
  .signin-form tr,
  .signin-form td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .signin-form table {
    border-collapse: collapse;
  }

  .signin-form td {
    padding: 0 !important;
    text-align: left !important;
  }

  .signin-form h3 {
    margin: 0 0 16px !important;
    font-size: 26px !important;
    line-height: 1.1 !important;
    color: #1f2933 !important;
  }

  .signin-form h3 + br {
    display: none;
  }

  .signin-form label {
    display: block !important;
    margin: 14px 0 7px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }

  .signin-form input[type="text"],
  .signin-form input[type="password"] {
    display: block !important;
    width: 100% !important;
    min-height: 46px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    border: 1px solid #d5dde5 !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    background-image: linear-gradient(#f9fafb, #f9fafb) !important;
    color: #1f2933 !important;
    -webkit-text-fill-color: #1f2933 !important;
    color-scheme: only light;
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  .signin-form input[type="text"]:focus,
  .signin-form input[type="password"]:focus {
    border-color: #0a5c78 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: linear-gradient(#ffffff, #ffffff) !important;
    outline: 3px solid rgba(10, 92, 120, 0.15) !important;
  }

  .signin-form input[type="submit"] {
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    margin: 18px 0 0 !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #07546f !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .become_member.auth-links {
    display: flex !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 14px auto 0 !important;
    gap: 10px !important;
    justify-content: space-between !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  .become_member.auth-links > div {
    min-width: 0;
  }

  .become_member.auth-links a {
    display: inline-block !important;
    width: auto !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
}

@media screen and (max-width: 380px) {
  .public-content {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  form.form_standard.signin-form {
    padding: 18px !important;
  }

  .become_member.auth-links {
    flex-direction: column !important;
    gap: 8px !important;
  }
}
