/* ============================================================
   CREATI CONT PAGE — registration form (minimalistic header/footer
   is assets/css/minimal-chrome.css, registered alongside this file —
   not duplicated here, see that file's own comment)
   ============================================================ */

/* ── Buttons ── */
.btn-primary-cc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  background-color: var(--red);
  border: none;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: var(--ls-30);
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: opacity var(--transition);
}

.btn-primary-cc:hover {
  opacity: 0.88;
}

.btn-secondary-cc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  background-color: transparent;
  border: 2px solid var(--red);
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: var(--ls-30);
  text-transform: uppercase;
  color: var(--red);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.btn-secondary-cc:hover {
  background-color: var(--red);
  color: #fff;
  opacity: 1;
}

/* ── Content wrapper ── */
.register-content {
  padding: 64px 0 96px;
  background-color: var(--bg);
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 32px;
  max-width: 600px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .register-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Notice (theme addition, not in html/css/creati-cont.css — the mockup
   has no server round-trip to report an error from). Same convention as
   login.css's .login-notice/.login-notice-error, itself matching cont.css's
   .cont-form-notice pair; no success variant here either, since a
   successful registration redirects immediately. ── */
.register-notice {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 6px;
}

.register-notice-error {
  color: var(--red);
  background-color: var(--red-light);
  border: 1px solid var(--red);
}

/* ── Card ── */
.register-card {
  background-color: var(--surface);
  border: 1.5px solid var(--grey);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 40px);
}

.register-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: var(--ls-30);
  color: var(--text);
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--grey);
}

/* ── Form ── */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.register-form-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--ls-25);
  text-transform: uppercase;
  color: var(--text);
}

.register-required {
  color: var(--red);
}

.register-form-input,
.register-form-select {
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--grey);
  border-radius: 6px;
  background-color: var(--surface);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}

.register-form-input:focus,
.register-form-select:focus {
  border-color: var(--red);
}

.register-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%239d9d9c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Fields "Importă Datele Companiei dupa CUI" fills in — locked so the
   only way to populate them is that lookup, not direct typing. Plain
   [readonly] handles the text inputs on its own (still submits, still
   enforces `required`); <select> has no native readonly, so
   .register-locked-select (assets/js/creati-cont.js adds tabindex="-1"
   and blocks keydown) does the same job for cc-tara/cc-tara-fact/cc-judet
   without disabling them, which would drop them from the submitted form
   and skip `required` validation entirely. */
.register-form-input[readonly],
.register-locked-select {
  background-color: var(--grey);
  color: var(--grey-meta);
  cursor: not-allowed;
}

.register-locked-select {
  pointer-events: none;
}

.register-form-hint {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--grey-meta);
  background-color: var(--bg);
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: -6px;
}

/* ── Checkbox rows ── */
.register-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
}

.register-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}

.register-checkbox-row label {
  cursor: pointer;
}

.register-checkbox-row a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Terms + captcha block (spans left column) ── */
.register-terms-block {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Static captcha mock */
.register-captcha {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid var(--grey);
  border-radius: 4px;
  background-color: var(--surface);
}

.register-captcha input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--text);
  cursor: pointer;
}

.register-captcha-copy {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
}

.register-captcha-sub {
  font-size: 10px;
  color: var(--grey-meta);
}

/* ── Actions row (spans full width, right aligned) ── */
.register-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .register-terms-block {
    grid-column: 1;
  }
}
