/* =============================================
   Wedsi — User Signup Page
============================================= */

html {
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;
  background-color: #e9e7e7;
  color: #111111;
  min-height: 100vh;
}

input,
select,
textarea,
button {
  color: #111111;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* ---- Spinner ---- */

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* =============================================
   PAGE LAYOUT — Split Panel
============================================= */

.signup-page {
  display: flex;
  min-height: 100vh;
}


/* ---- Brand Panel ---- */

.brand-panel {
  width: 40%;
  background-color: #A62D0D;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 52px 52px 48px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.brand-logo {
  display: inline-block;
  flex-shrink: 0;
}

.brand-logo img {
  width: 105px;
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.brand-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 32px;
}

.brand-headline {
  font-family: "Alice", serif;
  font-size: 2rem;
  line-height: 2.9rem;
  color: #ffffff;
  margin: 0 0 38px;
  font-weight: 400;
}

.brand-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.55rem;
  font-family: "Outfit", sans-serif;
}

.brand-point-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.brand-point-icon svg {
  display: block;
}

.brand-footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-footer a:hover {
  color: #ffffff;
}

.brand-back {
  display: none;
}


/* ---- Form Panel ---- */

.form-panel {
  flex: 1;
  background-color: #ffffff;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 72px;
  min-height: 100vh;
}

.form-container {
  width: 100%;
  max-width: 400px;
  padding-bottom: 48px;
}


/* ---- Form Header ---- */

.form-header {
  margin-bottom: 38px;
}

.form-title {
  font-family: "Alice", serif;
  font-size: 2rem;
  line-height: 2.6rem;
  color: #111111;
  margin: 0 0 10px;
  font-weight: 400;
}

.form-subtitle {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
  font-family: "Outfit", sans-serif;
  line-height: 1.5rem;
}

.form-subtitle a {
  color: #A62D0D;
  text-decoration: none;
  font-weight: 600;
}

.form-subtitle a:hover {
  text-decoration: underline;
}


/* ---- Fields ---- */

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 8px;
  font-family: "Outfit", sans-serif;
}

.req {
  color: #A62D0D;
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid #e2e2e2;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: "Outfit", sans-serif;
  color: #111111;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  display: block;
}

.field input:focus {
  border-color: #A62D0D;
}

.field input::placeholder {
  color: #b8b8b8;
  font-weight: 400;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 48px !important;
}

.eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #aaaaaa;
  transition: color 0.2s;
  line-height: 0;
}

.eye-btn:hover {
  color: #555555;
}


/* ---- Password Strength Bar ---- */

.strength-wrap {
  margin-top: 10px;
  display: none;
}

.strength-segments {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}

.strength-seg {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background-color: #e9e7e7;
  transition: background-color 0.3s ease;
}

.strength-seg.active {
  background-color: #A62D0D;
}

.strength-label {
  font-size: 0.78rem;
  color: #999;
  font-family: "Outfit", sans-serif;
}


/* ---- Custom Checkboxes ---- */

.check-group {
  margin-bottom: 16px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}

.check-input {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.check-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid #d0d0d0;
  border-radius: 4px;
  background-color: #ffffff;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s;
}

.check-input:checked + .check-box {
  background-color: #A62D0D;
  border-color: #A62D0D;
}

.check-input:checked + .check-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.check-text {
  font-size: 0.86rem;
  color: #555555;
  line-height: 1.55rem;
  font-family: "Outfit", sans-serif;
}

.check-text a {
  color: #A62D0D;
  text-decoration: none;
  font-weight: 500;
}

.check-text a:hover {
  text-decoration: underline;
}

.check-optional {
  font-size: 0.78rem;
  color: #aaaaaa;
  margin-left: 3px;
}


/* ---- Error Messages ---- */

.form-error {
  font-size: 0.84rem;
  color: #A62D0D;
  margin-bottom: 14px;
  display: none;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  line-height: 1.5rem;
}


/* ---- Submit Button ---- */

.btn-submit {
  width: 100%;
  height: 50px;
  background-color: #A62D0D;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.25s ease, transform 0.2s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #8f2509;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}


/* ---- Success State ---- */

.success-state {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #f4eded;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.success-icon svg {
  display: block;
}

.success-state h2 {
  font-family: "Alice", serif;
  font-size: 1.75rem;
  color: #111111;
  margin: 0 0 14px;
  font-weight: 400;
}

.success-state p {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.7rem;
  margin: 0 0 6px;
  font-family: "Outfit", sans-serif;
}

.success-state strong {
  color: #111111;
  font-weight: 600;
}

.btn-goto-login {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 34px;
  background-color: #A62D0D;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-goto-login:hover {
  background-color: #8f2509;
  transform: translateY(-1px);
  color: #ffffff;
}


/* ---- Vendor Switch Link ---- */

.vendor-switch {
  margin-top: 26px;
  text-align: center;
  font-size: 0.85rem;
  color: #999999;
  font-family: "Outfit", sans-serif;
  line-height: 1.5rem;
}

.vendor-switch a {
  color: #A62D0D;
  text-decoration: none;
  font-weight: 500;
}

.vendor-switch a:hover {
  text-decoration: underline;
}


/* =============================================
   RESPONSIVE
============================================= */

@media (max-width: 900px) {
  .brand-panel {
    width: 36%;
    padding: 44px 36px 40px;
  }

  .brand-headline {
    font-size: 1.7rem;
    line-height: 2.5rem;
  }

  .form-panel {
    padding: 56px 44px;
  }
}

@media (max-width: 768px) {
  .signup-page {
    flex-direction: column;
  }

  /* Brand panel becomes a slim header strip */
  .brand-panel {
    width: 100%;
    height: 62px;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    flex-shrink: 0;
  }

  .brand-main,
  .brand-footer {
    display: none;
  }

  .brand-logo img {
    width: 82px;
  }

  .brand-back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    text-decoration: none;
    font-family: "Outfit", sans-serif;
    transition: color 0.2s;
  }

  .brand-back:hover {
    color: #ffffff;
  }

  .brand-back svg {
    display: block;
  }

  .form-panel {
    min-height: unset;
    flex: 1;
    padding: 36px 24px 56px;
    align-items: flex-start;
  }

  .form-container {
    max-width: 100%;
    padding-bottom: 0;
  }

  .form-title {
    font-size: 1.7rem;
    line-height: 2.2rem;
  }

  .vendor-switch {
    display: block;
  }
}

@media (max-width: 440px) {
  .brand-panel {
    height: 56px;
    padding: 0 16px;
  }

  .brand-logo img {
    width: 70px;
  }

  .form-panel {
    padding: 28px 16px 48px;
  }

  .form-title {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .form-header {
    margin-bottom: 28px;
  }
}
