/* auth.css */

/* ── Auth standalone page ── */
.auth-body {
  background: linear-gradient(135deg, #2b5611 0%, #c9e265 100%);
  min-height: 100vh;
  margin: 0;
  position: relative;
}

.auth-page-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.auth-page-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 36px 0;
}

.auth-page-logo img {
  width: 50px;
  height: 50px;
}

.auth-page-logo span {
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--color-white);
}

/* ── Auth page wrapper ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* ── Auth card ── */
.auth-card {
  background: var(--color-off-white);
  border-radius: 20px;
  width: 880px;
  position: relative;
  padding: 48px 48px 36px;
  box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.auth-card-register {
  padding: 48px 48px 36px;
  min-height: 750px;
}

/* ── Auth views ── */
.auth-view {
  width: 100%;
}

/* ── Back arrow ── */
.back-arrow {
  display: inline-block;
  text-decoration: none;
  position: absolute;
  top: 48px;
  left: 48px;
}

.back-arrow img {
  width: 24px;
  height: 24px;
  display: block;
}

/* ── Top right link ── */
.auth-top-right {
  position: absolute;
  top: 48px;
  right: 48px;
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-gray-dark);
  cursor: pointer;
}

/* ── Card inner layout ── */
.auth-card-inner {
  display: flex;
  gap: 48px;
  align-items: center;
}

/* Signup stages: push content below the absolute back arrow */
.signup-inner {
  align-items: flex-start;
  padding-top: 44px;
}

/* ── Left side — login ── */
.auth-card-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo {
  width: 380px;
  height: auto;
}

/* ── Left side — signup stages ── */
.signup-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  padding-left: 32px;
  height: 560px;
}

.auth-logo-small {
  width: 250px;
  height: auto;
}

/* ── Right side ── */
.auth-card-right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Signup right: fixed height so all stages are same card size,
   space-between pins buttons to bottom */
.signup-right {
  display: flex;
  flex-direction: column;
  height: 600px;
  min-height: 600px;
  max-height: 600px;
  overflow: visible;
  gap: 0;
}

/* push content down a bit on stages 2+  */
.signup-right-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
  min-height: 0;
}

/* ── Title ── */
.auth-title {
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--color-black);
  margin: 0 0 8px 0;
}

.auth-title-centered {
  text-align: center;
}

.auth-title-medium {
  font-weight: 500;
  text-shadow: var(--text-shadow-1);
}

/* ── Form group ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-small-gap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-group-small-gap .form-group {
  gap: 1px;
}

.form-group-small-gap .field-error {
  height: 14px;
  font-size: 11px;
  line-height: 14px;
}

.form-group-small-gap .form-row-split {
  gap: 12px;
}

#view-profile-business .signup-right-inner {
  gap: 10px;
}

#view-profile-business .form-group-small-gap {
  gap: 0;
}

#view-profile-business .form-group.profile-field-group {
  margin-top: 8px;
}

#view-profile-business .brand-photo-upload {
  gap: 10px;
}

#view-profile-business .brand-photo-preview {
  width: 44px;
  height: 44px;
}

#view-profile-business .brand-photo-preview img {
  width: 24px;
  height: 24px;
}

#view-profile-business .brand-photo-preview.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#view-profile-business .brand-photo-action {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.1;
}

#view-profile-business .auth-input.auth-input-small {
  height: 34px;
  font-size: 13px;
}

#view-profile-business label {
  font-size: 13px;
}

#view-profile-business .field-error {
  height: 10px;
  font-size: 10px;
  line-height: 10px;
}

.form-group.profile-field-group {
  margin-top: 15px;
}

.profile-field-group .form-row-split {
  gap: 8px 12px;
}

.profile-field-group > .form-group,
.profile-field-group > .form-row-split + .form-group,
.profile-field-group > .form-row-split + .form-row-split {
  margin-top: 2px;
}

.brand-photo-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-photo-preview {
  width: 54px;
  height: 54px;
  border: 2px solid var(--color-green-dark);
  border-radius: 6px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-photo-preview img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-photo-preview.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-photo-preview.input-error {
  border-color: #e53935;
}

.brand-photo-error {
  width: 160px;
}

.brand-photo-action {
  border: 1.5px solid var(--color-gray-mid);
  border-radius: 6px;
  background: var(--color-white);
  padding: 8px 14px;
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--color-gray-dark);
  cursor: pointer;
}

.form-group label {
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--color-black);
}

/* ── Validation ── */
.field-error {
  font-family: "Avenir", Arial, sans-serif;
  font-size: 12px;
  color: #e53935;
  height: 16px;
  display: block;
  overflow: hidden;
}

.auth-input.input-error {
  border-color: #e53935;
}

/* ── Auth input ── */
.auth-input {
  width: 100%;
  padding: 12px 16px;
  border: 2.5px solid var(--color-green-dark);
  border-radius: 6px;
  background: var(--color-white);
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-black);
  outline: none;
  box-sizing: border-box;
}

.auth-input.auth-input-small {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.auth-input::placeholder {
  color: var(--color-gray-mid);
}

.auth-input:focus {
  border-color: var(--color-green-dark);
  outline: none;
}

/* ── Input with eye icon ── */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .auth-input {
  padding-right: 48px;
}

.eye-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.eye-toggle img {
  width: 24px;
  height: 24px;
  display: block;
}

/* ── Form row (remember me + forgot password) ── */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-green-dark);
  cursor: default;
  line-height: 1;
}

.checkbox-img {
  width: 18px;
  height: 18px;
  cursor: pointer;
  display: block;
}

.forgot-password {
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-green-dark);
  text-decoration: none;
  line-height: 1;
}

/* ── Switch link ── */
.auth-switch {
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-gray-dark);
  text-align: center;
  margin: 8px 0 0 0;
}

.auth-link {
  font-weight: 900;
  color: var(--color-green-dark);
  text-decoration: none;
}

.login-acknowledgements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* ── Step indicator ── */
.step-indicator {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-gray-mid);
  flex-shrink: 0;
  cursor: default;
  box-sizing: border-box;
}

.step-dot.active {
  background: var(--color-green-light);
  border: 3px solid var(--color-green-dark);
}

.step-label {
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-black);
  cursor: default;
  white-space: nowrap;
}

.step-line {
  width: 2px;
  height: 40px;
  background: var(--color-green-dark);
  margin-left: 9px;
}

/* ── Form actions ── */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.form-actions-split {
  justify-content: flex-end;
  gap: 16px;
}

/* ── Split form row ── */
.form-row-split-small-gap {
  display: flex;
  gap: 12px;
}

.form-row-split {
  display: flex;
  gap: 24px;
}

.form-row-split-small {
  gap: 12px;
}

.form-row-split .form-group {
  flex: 1;
}

/* ── Small form variants ── */
.form-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-compact .form-group,
.form-compact .form-group-row-split {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-compact .auth-input {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.form-compact label {
  font-size: 13px;
}

.form-compact .field-error {
  height: 12px;
  font-size: 11px;
}

/* ── Select dropdown ── */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

.auth-select option[value=""] {
  color: var(--color-gray-mid);
}

.select-arrow {
  position: absolute;
  right: 16px;
  width: 14px;
  height: 8px;
  pointer-events: none;
}

/* ── Verification upload ── */
.verification-subtitle {
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-gray-dark);
  margin: 0;
}

.verification-explainer {
  font-family: "Avenir", Arial, sans-serif;
  color: var(--color-black);
  font-size: 13px;
}

.verification-explainer p {
  margin: 0 0 4px;
  font-weight: 900;
}

.verification-explainer ul {
  margin: 0;
  padding-left: 18px;
}

.verification-explainer li {
  margin: 2px 0;
}

.control-code {
  font-weight: 900;
  color: var(--color-green-dark);
  white-space: nowrap;
}

.verification-link {
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  font-style: italic;
  text-decoration: underline;
  color: var(--color-green-dark);
  display: block;
  margin-bottom: 12px;
}

/* Dashed dropzone — files appear INSIDE, fixed size always */
.upload-dropzone-box {
  border: 2px dashed var(--color-green-dark);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  min-height: 150px;
  max-height: 190px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* When files present, align items to start */
.upload-dropzone-box.has-files {
  align-items: flex-start;
  justify-content: flex-start;
}

.upload-dropzone-box:hover {
  background: var(--color-off-green);
}

/* Center placeholder row */
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 0;
  margin: auto;
}

.upload-outer-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: auto;
}

.upload-inner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-mid);
  border-radius: 6px;
  padding: 10px 24px;
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-gray-dark);
  pointer-events: none;
}
.upload-inner-btn img {
  width: 18px;
  height: auto;
}

.upload-add-files-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  margin: 0;

  cursor: pointer;
}

.upload-dropzone-hint {
  font-family: "Avenir", Arial, sans-serif;
  font-size: 14px;
  color: var(--color-gray-dark);
}

/* Hidden file input */
.upload-trigger {
  display: none;
}

/* Files inside the box */
.uploaded-file-row {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 2px solid var(--color-green-dark);
  border-radius: 6px;
  background: var(--color-white);
  font-family: "Avenir", Arial, sans-serif;
  font-size: 15px;
  color: var(--color-black);
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: hidden;
  min-width: 0;
}

.uploaded-file-row span:first-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uploaded-file-row span:last-child {
  flex-shrink: 0;
  margin-left: 12px;
}

.upload-error {
  font-family: "Avenir", Arial, sans-serif;
  font-size: 12px;
  color: #e53935;
  min-height: 14px;
  display: block;
  margin-top: 6px;
  margin-bottom: 6px;
}

.verification-ack {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: "Avenir", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-gray-dark);
}

.verification-ack input {
  margin-top: 2px;
  flex-shrink: 0;
}

.control-verification-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-choice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-choice {
  align-items: flex-start;
  margin: 0;
}

.control-proof-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  border: 1.5px solid var(--color-gray-mid);
  border-radius: 6px;
  background: var(--color-white);
  padding: 8px 14px;
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--color-gray-dark);
  cursor: pointer;
}

.control-proof-btn img {
  width: 16px;
  height: auto;
  flex-shrink: 0;
}

.control-proof-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Account Activated ── */
/* same layout as other stages, content pushed down via padding-top */
.activated-right-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

.form-submit-errors {
  width: 100%;
  max-width: 420px;
  text-align: left;
  font-family: "Avenir", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #e53935;
}

.form-submit-errors p {
  margin: 0 0 6px;
}

.form-submit-errors-top {
  margin: 52px auto -24px;
}

.activated-subtitle {
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-gray-dark);
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.activated-dashboard-btn {
  text-decoration: none;
}

/* ── Modal overlay ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-overlay .auth-card {
  width: 880px;
  box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.45);
  max-height: 90vh;
  overflow-y: auto;
}

.account-created-popup {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: calc(100vw - 32px);
  padding: 14px 16px 14px 18px;
  border: 2px solid var(--color-green-dark);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-green-dark);
  font-family: "Avenir", Arial, sans-serif;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.account-created-popup button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--color-gray-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.verification-infographic-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.verification-infographic-modal.active {
  display: flex;
}

.verification-infographic-scroll {
  width: min(1080px, 100%);
  height: calc(100vh - 36px);
  overflow: auto;
}

.verification-infographic-scroll img {
  display: block;
  width: 100%;
  min-width: 660px;
  height: auto;
}

.verification-infographic-close {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 121;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.verification-infographic-close img {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .verification-infographic-modal {
    padding: 12px;
  }

  .verification-infographic-scroll {
    height: calc(100vh - 24px);
  }

  .verification-infographic-close {
    top: 12px;
    left: 12px;
  }
}
