/* css/signup.css
   Signup-page-specific styles: form layout, inputs, preview, password strength,
   modal-card, toast colors, and responsive adjustments.
   Load this AFTER css/root.css.
*/

/* Local container sizing override for signup page */
.container {
  max-width: 720px;
  margin: 18px auto;
}

/* Card padding */
.card {
  padding: 16px 14px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 44px;
  height: 44px;
  background: #eef2ff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
}
.brand-text {
  font-weight: 700;
  font-size: 16px;
}
.small {
  color: var(--muted);
  font-size: 13px;
}

/* Form - single column stack */
.form h2 {
  margin: 12px 0 8px;
  font-size: 15px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-size: 14px;
  color: #111827;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="file"] {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
  font-size: 15px;
  background: white;
  outline: none;
}
input:focus {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.06);
}
input.invalid {
  border-color: #f87171;
  box-shadow: 0 8px 20px rgba(248, 113, 113, 0.05);
}

.field-error {
  color: #b91c1c;
  font-size: 13px;
  min-height: 16px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}

/* small-row for compact pair on mobile (stacks by default) */
.small-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.input-half {
  width: 100%;
}

/* Password strength */
.pw-strength {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.pw-strength .bar {
  width: 36px;
  height: 6px;
  background: #e6e6e6;
  border-radius: 3px;
  transition: background 0.12s;
}
.pw-strength .bar.active {
  background: var(--success);
}

/* Preview */
#previewImage {
  width: 120px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
  padding: 4px;
  background: white;
}

/* Toast colors (signup-specific variants) */
.toast.success {
  background: linear-gradient(180deg, var(--success), #059669);
}
.toast.error {
  background: linear-gradient(180deg, var(--danger), #b91c1c);
}

/* Modal card (page-specific) */
.modal-card {
  width: min(520px, 96%);
  background: var(--card);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.28);
  text-align: center;
  animation: modalPop 0.14s ease-out;
}
@keyframes modalPop {
  from {
    transform: translateY(8px) scale(0.995);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-icon {
  width: 72px;
  height: 72px;
  line-height: 72px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  font-size: 36px;
  margin: -48px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(16, 185, 129, 0.07);
}
.modal-card h3 {
  margin-top: 4px;
  font-size: 19px;
}
.modal-card p {
  color: #334155;
  margin-top: 10px;
  font-size: 14px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

/* CTA row */
.row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 6px;
}
@media (min-width: 720px) {
  .card {
    padding: 22px;
  }
  .small-row {
    flex-direction: row;
    gap: 12px;
  }
  .input-half {
    width: 50%;
  }
  .row-actions {
    justify-content: flex-end;
  }
}

/* Small responsive tweak for preview image on small screens */
@media (max-width: 360px) {
  #previewImage {
    width: 100px;
  }
  .logo {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}
