/*
========================================================
اسم الملف: signup.css
المسار: /assets/css/
الوصف:
تنسيق صفحة إنشاء الحساب من الواجهة الأمامية.
========================================================
*/

.asc-signup-page {
  position: relative;
  overflow: hidden;
  padding: 36px 0 72px;
}

.asc-signup-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgb(5 67 140 / 10%), transparent 24%),
    radial-gradient(circle at top right, rgb(35 128 47 / 12%), transparent 22%),
    linear-gradient(180deg, #f7fbff 0%, #f4fbf6 100%);
  z-index: -1;
}

.asc-signup-shell {
  position: relative;
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
}

.asc-signup-shell__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.asc-signup-shell__decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.asc-signup-shell__decor--one {
  top: -42px;
  inset-inline-start: -36px;
  width: 160px;
  height: 160px;
  background: rgb(5 67 140 / 12%);
}

.asc-signup-shell__decor--two {
  inset-block-end: -56px;
  inset-inline-end: 12px;
  width: 220px;
  height: 220px;
  background: rgb(35 128 47 / 12%);
}

.asc-signup-hero,
.asc-signup-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(5 67 140 / 12%);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(246 251 255 / 92%)),
    radial-gradient(circle at top left, rgb(5 67 140 / 8%), transparent 40%);
  box-shadow:
    0 26px 52px rgb(6 42 56 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 78%);
}

.asc-signup-hero {
  padding: clamp(26px, 3.8vw, 42px);
}

.asc-signup-hero::after,
.asc-signup-card::after {
  content: "";
  position: absolute;
  inset: auto -64px -64px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(35 128 47 / 10%), transparent 70%);
  pointer-events: none;
}

.asc-signup-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--asc-color-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.asc-signup-hero__title {
  margin: 0;
  color: var(--asc-color-text);
  font-size: clamp(32px, 4.8vw, 62px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.asc-signup-hero__lead {
  margin: 16px 0 0;
  max-width: 58ch;
  color: #4d6573;
  font-size: 16px;
  line-height: 1.9;
}

.asc-signup-hero__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.asc-signup-hero__feature {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgb(5 67 140 / 10%);
  background: rgb(255 255 255 / 82%);
}

.asc-signup-hero__feature strong {
  display: block;
  margin-bottom: 6px;
  color: #05438c;
  font-size: 14px;
  font-weight: 900;
}

.asc-signup-hero__feature span {
  color: #5b7380;
  font-size: 13px;
  line-height: 1.7;
}

.asc-signup-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.asc-signup-card {
  padding: clamp(22px, 3vw, 34px);
}

.asc-signup-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.asc-signup-card__eyebrow {
  margin: 0 0 6px;
  color: var(--asc-color-primary);
  font-size: 13px;
  font-weight: 800;
}

.asc-signup-card__title {
  margin: 0;
  color: var(--asc-color-text);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.asc-signup-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgb(35 128 47 / 10%);
  color: #23802f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.asc-signup-notice {
  padding: 14px 16px;
  border-radius: 18px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.7;
}

.asc-signup-notice--error {
  border: 1px solid rgb(185 28 28 / 16%);
  background: rgb(254 242 242 / 88%);
  color: #991b1b;
}

.asc-signup-notice--success {
  border: 1px solid rgb(35 128 47 / 16%);
  background: rgb(240 250 242 / 92%);
  color: #1f6d29;
}

.asc-signup-notice ul {
  margin: 0;
  padding-inline-start: 20px;
}

.asc-signup-form {
  display: grid;
  gap: 16px;
}

.asc-signup-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.asc-signup-form__field {
  display: grid;
  gap: 8px;
}

.asc-signup-form__field--wide {
  grid-column: 1 / -1;
}

.asc-signup-form__field label {
  color: #254556;
  font-size: 14px;
  font-weight: 700;
}

.asc-signup-form__field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgb(5 67 140 / 14%);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--asc-color-text);
  font-size: 15px;
  box-shadow: inset 0 1px 2px rgb(6 42 56 / 4%);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.asc-signup-form__field input:focus {
  outline: 0;
  border-color: var(--asc-color-primary);
  box-shadow:
    0 0 0 4px rgb(5 67 140 / 10%),
    inset 0 1px 2px rgb(6 42 56 / 4%);
}

.asc-signup-form__field input.is-invalid {
  border-color: rgb(185 28 28 / 40%);
  box-shadow: 0 0 0 4px rgb(185 28 28 / 8%);
}

.asc-signup-form__field.has-error input,
.asc-signup-form__terms.has-error {
  border-color: rgb(185 28 28 / 38%);
}

.asc-signup-form__error {
  margin: 0;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.6;
}

.asc-signup-form__error[hidden] {
  display: none;
}

.asc-signup-form__error--terms {
  margin-top: -6px;
  padding-inline-start: 30px;
}

.asc-signup-form__password-wrap {
  position: relative;
}

.asc-signup-form__password-wrap input {
  padding-inline-end: 90px;
}

.asc-signup-form__toggle {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgb(5 67 140 / 10%);
  color: #05438c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.asc-signup-form__terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #44616f;
  font-size: 14px;
  line-height: 1.7;
}

.asc-signup-form__terms input {
  margin-top: 4px;
  flex: 0 0 auto;
}

.asc-signup-form__actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.asc-signup-form__submit {
  width: 100%;
}

.asc-signup-form__note {
  margin: 0;
  color: #627582;
  font-size: 13px;
  line-height: 1.7;
}

.asc-signup-card__logged-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.asc-signup-form__honeypot {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 980px) {
  .asc-signup-shell__inner {
    grid-template-columns: 1fr;
  }

  .asc-signup-hero__features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .asc-signup-page {
    padding: 18px 0 56px;
  }

  .asc-signup-shell {
    width: min(100% - 16px, 1240px);
  }

  .asc-signup-hero,
  .asc-signup-card {
    border-radius: 24px;
  }

  .asc-signup-card__head {
    flex-direction: column;
  }

  .asc-signup-form__grid {
    grid-template-columns: 1fr;
  }

  .asc-signup-form__password-wrap input {
    padding-inline-end: 76px;
  }
}
