body {
  font-family: var(--font-primary);
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.5vw, 32px);
  background-image: url("/assets/images/banana.png");
  background-repeat: repeat;
  background-color: var(--background-color-page);
}

html {
  font-size: clamp(14px, 1.6vw, 16px);
}

hr {
  border: none;
  border-top: 1px solid #636a6d;
  opacity: 0.5;
  margin: 1rem 0;
}

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

.register-card {
  width: 100%;
  max-width: 680px;
  background: var(--background-color-container);
  color: var(--text-color-default);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.register-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: var(--background-color-page);
  box-shadow: 0 0 0 4px var(--background-color-container),
    0 2px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.register-title {
  margin: 8px 0 6px;
  text-align: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  color: #000;
}

.register-subtitle {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  line-height: 1.6;
  color: var(--neutral-700);
}

.register-form {
  display: grid;
  gap: 14px;
}

.register-form h4 {
  margin-top: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.register-form-grid-col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.seller-form-grid {
  display: grid;
  gap: 14px;
}

.seller-form-grid h4 {
  margin-top: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  color: var(--neutral-600);
}

.field-quill {
  display: grid;
  gap: 0;
}

.field-quill label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  color: var(--neutral-600);
  margin-bottom: 6px;
}

label[for="logoFormat"] {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  color: var(--neutral-600);
}

.input,
input[type="email"],
input[type="password"],
input[type="text"],
input[type="file"],
textarea {
  appearance: none;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--neutral-400);
  color: var(--text-color-default);
  background: none;
  font-family: var(--font-primary);
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  line-height: 1.4;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.input::placeholder,
input::placeholder {
  color: var(--neutral-400);
}

.input:focus,
input:focus {
  border-color: var(--nimon-blue);
  background: none;
  box-shadow: 0 0 0 3px rgba(90, 169, 230, 0.25);
}

.input-with-icon {
  position: relative;
  display: block;
  width: 100%;
}

.input-with-icon .input,
.input-with-icon input[type="password"] {
  width: 100%;
  padding-right: 56px;
}

input[type="file"]::file-selector-button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-primary);
}

.radio-option-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radio-option input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

.radio-option label {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--neutral-400);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.radio-option label::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border: 1px solid #ccc;
  border-radius: 50%;
  margin-right: 1rem;
  transition: border-color 0.2s ease-in-out;
}

.radio-text-content {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.5rem;
}

.radio-title {
  font-weight: 700;
  color: var(--text-color-default);
}

.radio-description {
  font-size: 0.9em;
  font-weight: 400;
  color: #666;
}

.radio-option input[type="radio"]:checked + label::after {
  content: "";
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background-color: var(--black);
  border-radius: 50%;
  top: 50%;
  left: calc(1rem);
  transform: translateY(-50%);
}

/* OVERRIDE QUILL STYLING */
.ql-toolbar.ql-snow {
  font-family: var(--font-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: var(--button-background);
  color: var(--button-text);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2px;
  line-height: 1;
  padding: 0 16px;
  cursor: pointer;
  transition: transform 0.06s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-primary:hover {
  background: var(--button-hover);
  color: var(--button-text-primary);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(90, 169, 230, 0.45);
  outline-offset: 2px;
}

.btn-primary[disabled],
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.register-footer {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-primary);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  color: rgba(64, 64, 64, 0.8);
}

.register-footer .link {
  color: var(--nimon-blue);
  font-weight: 600;
  text-decoration: none;
}

.register-footer .link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .register-card {
    border-radius: 18px;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary {
    transition: none;
  }
  .input,
  input {
    transition: none;
  }
}
