/* ============================================================
   TRAPICO — Sign-Up Page Styles
   Matches the compact auth-panel layout used in the provided mockup.
   ============================================================ */

.su-page {
  grid-template-columns: minmax(0, 1.62fr) minmax(420px, 0.9fr);
  height: 100vh;
  overflow: hidden;
}

.su-right {
  background: linear-gradient(180deg, #fbfbfb 0%, #f4f4f4 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 48px;
  overflow-y: auto;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.su-wrap {
  width: min(100%, 440px);
  padding: 0;
}

.su-title {
  margin: 0 0 28px;
  color: #111111;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
}

.su-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.su-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 14px;
}

.su-field {
  display: flex;
  flex-direction: column;
}

.su-col-full {
  grid-column: 1 / -1;
}

.su-label {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.su-input,
.su-select-btn,
.su-select-native {
  width: 100%;
  height: 40px;
  border: 1px solid #d0d4db;
  border-radius: 6px;
  background: #ffffff;
  padding: 0 12px;
  color: #111111;
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.su-input::placeholder,
.su-select-native:invalid {
  color: #8e96a3;
}

.su-input:focus,
.su-select-btn:focus,
.su-select-native:focus {
  outline: none;
  border-color: #9aa6bb;
  background: #f8fbff;
  box-shadow: 0 0 0 3px rgba(114, 142, 191, 0.14);
}

.su-select-native {
  appearance: auto;
  color: #111111;
}

#dis-department[readonly] {
  background: #f2f3f5;
  color: #707784;
}

.su-pw-wrap {
  position: relative;
}

.su-pw-input {
  padding-right: 38px;
}

.su-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #838894;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.su-pw-toggle:hover {
  color: #111111;
}

.su-eye-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 9px;
  border: 1.6px solid currentColor;
  border-radius: 10px / 7px;
}

.su-eye-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.su-eye-icon::before {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  top: 4px;
  height: 1.4px;
  background: currentColor;
  transform: rotate(-28deg);
  opacity: 0;
}

.su-pw-toggle.is-visible .su-eye-icon::before {
  opacity: 1;
}

.su-select-wrap {
  position: relative;
}

.su-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.su-select-btn.su-has-value {
  color: #111111;
}

.su-select-val {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.su-select-arrow {
  flex-shrink: 0;
  color: #6f7682;
  font-size: 11px;
  transition: transform 0.15s ease;
}

.su-select-btn.su-open .su-select-arrow {
  transform: rotate(180deg);
}

.su-select-list {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d6d9de;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.su-option {
  padding: 9px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  color: #111111;
  cursor: pointer;
}

.su-option:hover {
  background: #0d63d6;
  color: #ffffff;
}

.su-option-disabled {
  color: #a5acb7;
  cursor: default;
  pointer-events: none;
}

.su-option-selected {
  background: rgba(13, 99, 214, 0.1);
  color: #0d63d6;
}

.su-option-selected:hover {
  background: #0d63d6;
  color: #ffffff;
}

.su-legal,
.su-legal-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 10px;
}

.su-check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  line-height: 1.1;
}

.su-checkbox {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #111111;
}

.su-check-label {
  color: #111111;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.su-legal-link {
  border: 0;
  background: transparent;
  color: #111111;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
  vertical-align: baseline;
}

.su-legal-link:hover {
  opacity: 0.72;
}

.su-error {
  border-left: 3px solid #aa2222;
  background: #fff1f1;
  color: #8e1d1d;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.su-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  margin: 12px 0 14px;
}

.su-submit-disabled {
  background: #d4d4d4;
  color: #ffffff;
  cursor: not-allowed;
}

.su-submit-enabled {
  background: #111111;
  color: #ffffff;
  cursor: pointer;
}

.su-submit-enabled:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.su-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.su-footer-link {
  text-align: center;
  color: #9aa0ab;
  font-family: var(--font-body);
  font-size: 12px;
}

.su-footer-link a {
  color: #111111;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.su-footer-link a:hover {
  opacity: 0.72;
}

.legal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: su-backdrop-in 0.15s ease;
}

@keyframes su-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.legal-modal {
  background: #ffffff;
  width: min(92vw, 560px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  padding: 30px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.24);
  animation: su-modal-in 0.18s ease both;
}

@keyframes su-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.legal-modal-head {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111111;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal-divider {
  flex-shrink: 0;
  border: 0;
  border-top: 3px solid #111111;
  margin: 0 0 18px;
}

.legal-modal-body {
  flex: 1;
  overflow-y: auto;
  color: #444444;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.legal-accept {
  flex-shrink: 0;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.legal-accept:hover {
  background: #000000;
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .su-page {
    grid-template-columns: 1.25fr minmax(380px, 0.95fr);
  }
  .su-right {
    padding: 36px 36px;
  }
}

@media (max-width: 920px) {
  .su-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr; /* header compact, form fills rest */
    height: auto;
    overflow: visible;
  }
  .su-right {
    padding: 36px 32px 48px;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
  }
  .su-wrap {
    width: min(100%, 480px);
    margin: 0 auto;
  }
  /* Compact hero banner — identical to login mobile strip */
  .su-page .login-left-inner {
    min-height: auto !important;
    padding: 10px 18px !important;
  }
  .su-page .login-badge {
    display: inline-block !important;
    margin-bottom: 6px !important;
    font-size: 8px !important;
    padding: 4px 9px !important;
    border-radius: 4px !important;
  }
  .su-page .login-sub      { display: none !important; }
  .su-page .login-stats    { display: none !important; }
  .su-page .login-watermark{ display: none !important; }
  .su-page .login-title { font-size: 20px !important; line-height: 1 !important; margin-bottom: 0 !important; letter-spacing: -0.02em !important; }
  .su-page .login-left img { height: 20px !important; }
}

@media (max-width: 560px) {
  .su-right {
    padding: 32px 22px 40px;
  }
  .su-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .su-col-full {
    grid-column: 1;
  }
  .su-wrap {
    width: 100%;
  }
  .su-title {
    font-size: 34px;
  }
}

@media (max-width: 400px) {
  .su-title {
    font-size: 30px;
  }
}
