/* ProJo login redesign — CSS only, no HTML changes */

:root {
  --projo-burgundy: #8f1237;
  --projo-burgundy-dark: #74102f;
  --projo-burgundy-soft: #b84f6d;
  --projo-ink: #171717;
  --projo-text: #202124;
  --projo-muted: #8b8f97;
  --projo-line: #d9dce1;
  --projo-surface: rgba(255, 255, 255, 0.94);
  --projo-bg: #fbf8f6;
}

html,
body {
  min-height: 100%;
}

body.pageBody {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--projo-text);
  background: white;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.pageBody::before,
body.pageBody::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

/* subtle Japanese brush / blossom motif */
body.pageBody::before {
  right: -70px;
  top: 80px;
  width: 472px;
  height: 315px;
  opacity: 0.8;
  background-image: url("../images/sakura.png");
}

/* very soft ink-wash landscape */
body.pageBody::after {
  left: 0px;
  bottom: 0px;
  width: 388px;
  height: 291px;
  opacity: 0.4;
  background-image: url("../images/lake.png");
}

#component-login {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 46px 24px 28px;
  text-align: center;
}

#component-login > div:first-child {
  padding-top: 0 !important;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

#component-login > div:first-child img:first-child {
  width: 160px !important;
  height: 160px !important;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(70, 10, 30, .12));
}

#component-login > div:first-child img:nth-child(2) {
  height: 132px !important;
  width: auto !important;
  padding: 0 !important;
  object-fit: contain;
}

.entryForm {
  display:block;
  width: min(760px, calc(100vw - 40px));
  margin: 0 auto;
  box-sizing: border-box;
  padding: 38px 56px 36px;
  border: 1px solid rgba(21, 21, 21, .055);
  border-radius: 20px;
  background: var(--projo-surface);
  box-shadow:
    0 24px 60px rgba(25, 16, 20, .09),
    0 3px 12px rgba(25, 16, 20, .045);
  backdrop-filter: blur(10px);
}

.formName {
  margin: 0 0 28px;
  color: var(--projo-burgundy);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.02em;
}

.entryTable {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0 17px;
  text-align: left;
}

.entryTable tr,
.entryTable td {
  text-align: left !important;
  display: block;
  width: 100% !important;
  box-sizing: border-box;
}

.entryTableCaption {
  padding: 0 0 8px !important;
  color: var(--projo-ink);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  white-space: normal !important;
}

.entryTableCaption .mandatoryField {
  color: var(--projo-burgundy);
}

.entryTableValue {
  position: relative;
}

.formInputEdit,
.formInputPassword {
  width: 100% !important;
  height: 58px;
  box-sizing: border-box;
  padding: 0 52px 0 52px !important;
  color: var(--projo-text);
  background-color: #fff;
  border: 1px solid var(--projo-line) !important;
  border-radius: 10px !important;
  outline: 0;
  box-shadow: none !important;
  font: 400 16px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.formInputEdit:focus,
.formInputPassword:focus {
  border-color: var(--projo-burgundy-soft) !important;
  box-shadow: 0 0 0 4px rgba(143, 18, 55, .10) !important;
}

#Edit-user::before,
#Edit-pass::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  z-index: 2;
  pointer-events: none;
}

#Edit-user::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238f1237' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

#Edit-pass::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238f1237' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3Cpath d='M12 14v2'/%3E%3C/svg%3E");
}

.form-button-bottom {
  margin-top: 12px !important;
}

.form-button-bottom button {
  min-width: 150px;
  height: 52px;
  padding: 0 28px !important;
  border-radius: 9px !important;
  border: 1px solid var(--projo-burgundy) !important;
  box-shadow: none !important;
  font: 700 15px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}

#BID1 {
  color: #fff !important;
  background: linear-gradient(180deg, #a01843 0%, var(--projo-burgundy-dark) 100%) !important;
  box-shadow: 0 8px 18px rgba(143, 18, 55, .18) !important;
}

#BID2 {
  color: var(--projo-burgundy) !important;
  background: #fff !important;
}

.form-button-bottom button:hover {
  transform: translateY(-1px);
}

#BID1:hover {
  box-shadow: 0 11px 24px rgba(143, 18, 55, .24) !important;
}

#BID2:hover {
  background: rgba(143, 18, 55, .045) !important;
}

.buttonImagesG {
  display: none !important;
}

.entryForm + br {
  display: none;
}

#component-login > a,
#component-login > br + a,
#component-login > br + * a {
  color: var(--projo-burgundy);
}

#component-login > br + a,
#component-login > br + * {
  font-size: 15px;
}

#component-login a {
  color: var(--projo-burgundy);
  text-decoration-color: rgba(143, 18, 55, .45);
  text-underline-offset: 3px;
}

#component-login a:hover {
  color: var(--projo-burgundy-dark);
}

/* the reset-password text sits directly after the form in this legacy markup */
.entryForm ~ a,
.entryForm + br + a {
  display: inline-block;
  margin-top: 20px;
}

#component-login > div:nth-of-type(3) {
  padding-top: 8px !important;
}

#component-login > div:nth-of-type(3) > div {
  padding-top: 12px !important;
  align-items: center;
  color: #4a4d52;
  font-size: 14px;
}

#component-login > div:nth-of-type(3) img {
  height: 28px !important;
  width: auto;
}

.pageFooter,
#component-login + br,
#component-login + br + br {
  display: none !important;
}

@media (max-width: 760px) {
  #component-login {
    padding: 28px 14px 24px;
  }

  #component-login > div:first-child {
    gap: 14px;
    margin-bottom: 20px;
  }

  #component-login > div:first-child img:first-child {
    width: 94px !important;
    height: 94px !important;
  }

  #component-login > div:first-child img:nth-child(2) {
    height: 78px !important;
    max-width: 58vw;
  }

  .entryForm {
    width: 100%;
    padding: 28px 20px 26px;
    border-radius: 16px;
  }

  .formName {
    font-size: 23px;
  }

  .form-button-bottom {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .form-button-bottom a,
  .form-button-bottom button {
    width: 100%;
  }
}
