
/* Dawah.Wiki login polish
   Scope: UCP/login content only.
   Important: this file intentionally does NOT style phpBB headerbar,
   site-description, logo, h1, subtitle, or search-header.
*/

body.section-ucp {
  background:
    radial-gradient(circle at 0 0, rgba(79,126,232,.06), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 52%, #f7f9fc 100%);
  font-family: Inter, Arial, sans-serif;
  color: #10213f;
}

/* login page content only */
body.section-ucp #page-body {
  max-width: 980px !important;
  margin: 18px auto 28px !important;
  padding: 0 12px !important;
}

body.section-ucp #page-body > .panel,
body.section-ucp #page-body form#login > .panel,
body.section-ucp #dawahwiki-google-login-panel {
  border: 1px solid #dfe5f0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(38,55,105,.07) !important;
}

body.section-ucp #page-body .panel .inner {
  padding: 18px 22px !important;
}

/* Google sign-in card */
body.section-ucp #dawahwiki-google-login-panel[hidden] {
  display: none !important;
}

body.section-ucp #dawahwiki-google-login-panel {
  margin: 0 0 14px !important;
}

body.section-ucp .dawahwiki-auth-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px 22px !important;
  align-items: center !important;
}

body.section-ucp .dawahwiki-auth-card h2 {
  grid-column: 1 / -1 !important;
  margin: 0 0 8px !important;
  padding-bottom: 10px !important;
  box-shadow: inset 0 -1px 0 #ccd4df !important;
  color: #064f9e !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

body.section-ucp .dawahwiki-auth-card hr {
  display: none !important;
}

body.section-ucp .dawahwiki-auth-card p {
  margin: 0 !important;
  color: #40516e !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body.section-ucp .dawahwiki-auth-card p:has(.dawahwiki-google-button) {
  justify-self: end !important;
}

/* Normal Google-style web button */
body.section-ucp .dawahwiki-google-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-width: 246px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid #dadce0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #202124 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(60,64,67,.18) !important;
}

body.section-ucp .dawahwiki-google-button:hover {
  background: #f8fafd !important;
  border-color: #c9d2e2 !important;
  color: #202124 !important;
}

body.section-ucp .dawahwiki-google-button:focus {
  outline: 3px solid rgba(79,126,232,.35) !important;
  outline-offset: 3px !important;
}

@supports selector(:focus-visible) {
  body.section-ucp .dawahwiki-google-button:focus {
    outline: none !important;
  }

  body.section-ucp .dawahwiki-google-button:focus-visible {
    outline: 3px solid rgba(79,126,232,.35) !important;
    outline-offset: 3px !important;
  }
}

body.section-ucp .dawahwiki-google-mark,
body.section-ucp .dawahwiki-google-mark svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex: 0 0 18px !important;
}

/* Login/Register cards side-by-side */
body.section-ucp form#login {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

body.section-ucp form#login > .panel {
  margin: 0 !important;
}

body.section-ucp form#login .content {
  max-width: none !important;
}

body.section-ucp form#login h2.login-title,
body.section-ucp form#login h3 {
  margin: 0 0 8px !important;
  color: #064f9e !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}

body.section-ucp form#login fieldset.fields1 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Safe compact rows */
body.section-ucp form#login .fields1 dl {
  margin: 0 0 12px !important;
  padding: 0 !important;
}

body.section-ucp form#login .fields1 dt {
  float: none !important;
  width: auto !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  text-align: left !important;
}

body.section-ucp form#login .fields1 dd {
  margin: 0 0 6px !important;
  padding: 0 !important;
}

body.section-ucp form#login .fields1 dt label {
  font-weight: 800 !important;
  color: #1e2a45 !important;
}

@supports selector(dl:has(#username)) {
  body.section-ucp form#login .fields1 dl:has(#username),
  body.section-ucp form#login .fields1 dl:has(#password) {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 300px) !important;
    column-gap: 12px !important;
    align-items: center !important;
    max-width: 410px !important;
  }

  body.section-ucp form#login .fields1 dl:has(#username) dt,
  body.section-ucp form#login .fields1 dl:has(#password) dt {
    margin: 0 !important;
    text-align: right !important;
  }

  body.section-ucp form#login .fields1 dl:has(#username) dd,
  body.section-ucp form#login .fields1 dl:has(#password) dd {
    min-width: 0 !important;
    max-width: 300px !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body.section-ucp form#login .fields1 dl:has(#password) dd + dd {
    grid-column: 2 !important;
    margin-top: 4px !important;
  }

  body.section-ucp form#login .fields1 dl:has(#autologin) {
    margin-left: 100px !important;
    margin-top: 12px !important;
  }

  body.section-ucp form#login .fields1 dl:has(input[name="login"]) dt {
    display: none !important;
  }

  body.section-ucp form#login .fields1 dl:has(input[name="login"]) dd {
    margin-left: 100px !important;
  }
}

body.section-ucp form#login input#username,
body.section-ucp form#login input#password {
  display: block !important;
  width: 300px !important;
  max-width: 100% !important;
  height: 38px !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  padding: 6px 10px !important;
  line-height: 20px !important;
  font-size: 15px !important;
  border-radius: 8px !important;
}

body.section-ucp form#login input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  vertical-align: -3px !important;
  margin-right: 7px !important;
}

/* Modernize only auth/register buttons */
body.section-ucp form#login input[name="login"].button1 {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-height: 38px !important;
  padding: 0 20px !important;
  border: 1px solid #0754a4 !important;
  border-radius: 8px !important;
  background: #0b64c0 !important;
  color: #fff !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 8px 18px rgba(11,100,192,.18) !important;
  cursor: pointer !important;
}

body.section-ucp form#login input[name="login"].button1:hover {
  background: #0754a4 !important;
  color: #fff !important;
}

body.section-ucp form#login .button2 {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border: 1px solid #b9c9e4 !important;
  border-radius: 8px !important;
  background: #f6f9ff !important;
  color: #064f9e !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.section-ucp form#login hr.dashed {
  margin: 12px 0 !important;
}

body.section-ucp form#login p {
  margin: 0 0 10px !important;
  line-height: 1.45 !important;
}

/* mobile */
@media (max-width: 760px) {
  body.section-ucp #page-body {
    margin-top: 14px !important;
    padding: 0 4px !important;
  }

  body.section-ucp #page-body .panel .inner {
    padding: 16px !important;
  }

  body.section-ucp .dawahwiki-auth-card,
  body.section-ucp form#login {
    display: block !important;
  }

  body.section-ucp .dawahwiki-auth-card p:has(.dawahwiki-google-button) {
    justify-self: stretch !important;
  }

  body.section-ucp .dawahwiki-google-button,
  body.section-ucp form#login input#username,
  body.section-ucp form#login input#password {
    width: 100% !important;
  }

  body.section-ucp form#login > .panel {
    margin-bottom: 14px !important;
  }

  @supports selector(dl:has(#username)) {
    body.section-ucp form#login .fields1 dl:has(#username),
    body.section-ucp form#login .fields1 dl:has(#password) {
      display: block !important;
      max-width: none !important;
    }

    body.section-ucp form#login .fields1 dl:has(#username) dt,
    body.section-ucp form#login .fields1 dl:has(#password) dt {
      text-align: left !important;
      margin-bottom: 5px !important;
    }

    body.section-ucp form#login .fields1 dl:has(#autologin),
    body.section-ucp form#login .fields1 dl:has(input[name="login"]) dd {
      margin-left: 0 !important;
    }
  }
}


/* DAWAHWIKI BUTTON SIZE + REGISTER GOOGLE FIX BEGIN */

/* Make native auth buttons feel like real web buttons */
body.section-ucp form#login input[name="login"].button1,
body.section-ucp form#login .button2,
body.section-ucp .button1.dawahwiki-auth-submit,
body.section-ucp .button2.dawahwiki-auth-submit {
  min-height: 44px !important;
  min-width: 104px !important;
  padding: 0 24px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

/* Bigger primary login button */
body.section-ucp form#login input[name="login"].button1 {
  background: #0b64c0 !important;
  border-color: #0754a4 !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(11,100,192,.20) !important;
}

/* Bigger secondary register button */
body.section-ucp form#login .button2,
body.section-ucp .button2.dawahwiki-auth-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f6f9ff !important;
  border: 1px solid #b9c9e4 !important;
  color: #064f9e !important;
  text-decoration: none !important;
}

/* One Google button style for login and register pages */
body.section-ucp .dawahwiki-google-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-width: 270px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border: 1px solid #dadce0 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #202124 !important;
  font-size: 14.5px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(60,64,67,.18) !important;
}

body.section-ucp .dawahwiki-google-button:hover {
  background: #f8fafd !important;
  border-color: #c9d2e2 !important;
  color: #202124 !important;
}

body.section-ucp .dawahwiki-google-button:focus {
  outline: 3px solid rgba(79,126,232,.35) !important;
  outline-offset: 3px !important;
}

@supports selector(:focus-visible) {
  body.section-ucp .dawahwiki-google-button:focus {
    outline: none !important;
  }

  body.section-ucp .dawahwiki-google-button:focus-visible {
    outline: 3px solid rgba(79,126,232,.35) !important;
    outline-offset: 3px !important;
  }
}

body.section-ucp .dawahwiki-google-mark,
body.section-ucp .dawahwiki-google-mark svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex: 0 0 18px !important;
}

/* Register-page Google panel */
body.section-ucp #dawahwiki-register-google-panel {
  margin: 0 0 14px !important;
  border: 1px solid #dfe5f0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(38,55,105,.07) !important;
}

body.section-ucp #dawahwiki-register-google-panel .inner {
  padding: 18px 22px !important;
}

body.section-ucp .dawahwiki-register-google-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px 22px !important;
  align-items: center !important;
}

body.section-ucp .dawahwiki-register-google-card h2 {
  grid-column: 1 / -1 !important;
  margin: 0 0 8px !important;
  padding-bottom: 10px !important;
  box-shadow: inset 0 -1px 0 #ccd4df !important;
  color: #064f9e !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

body.section-ucp .dawahwiki-register-google-card p {
  margin: 0 !important;
  color: #40516e !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body.section-ucp .dawahwiki-register-google-card p:has(.dawahwiki-google-button) {
  justify-self: end !important;
}

@media (max-width: 760px) {
  body.section-ucp .dawahwiki-google-button {
    width: 100% !important;
  }

  body.section-ucp .dawahwiki-register-google-card {
    display: block !important;
  }

  body.section-ucp .dawahwiki-register-google-card p {
    margin-bottom: 12px !important;
  }
}

/* DAWAHWIKI BUTTON SIZE + REGISTER GOOGLE FIX END */

