/* ==========================================================================
   Greenfield Infra - create account (joinme.aspx)
   Requires theme.css + login.css (card, fields, buttons and the message dialogs live there).
   ========================================================================== */

/* one centred card on the artwork; the veil is even here because the card sits in the middle, not on the left */
.gf-signup .login__bg::before { background-position: 50% 30%; }
.gf-signup .login__bg::after {
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(147, 207, 28, .12), rgba(147, 207, 28, 0) 70%),
    linear-gradient(180deg, rgba(3, 14, 7, .80) 0%, rgba(3, 14, 7, .90) 45%, rgba(3, 14, 7, .96) 100%);
}

.signup__wrap {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  display: grid; justify-items: center; align-items: start; padding: 92px 16px 44px;
}
.signup__wrap > div { width: 100%; max-width: 540px; }          /* the UpdatePanel's own <div> */

/* the logo tile sits INSIDE the card here (on the login page it straddles the top edge) */
.signup__card { padding-top: 36px; }
.signup__card .login__logo { position: relative; left: auto; top: auto; translate: none; margin: 0 auto 20px; width: 104px; height: 104px; border-radius: 26px; }
.signup__card .login__logo:hover { transform: translateY(-3px) scale(1.03); }
.signup__card .login__title { font-size: 1.9rem; }
.signup__card .login__sub { margin-bottom: 28px; font-size: .9rem; }

/* labels: optional marker */
.signup__opt { margin-left: 4px; font-weight: 500; color: var(--gf-dim); }

/* selects share the input look; native arrow replaced by a chevron */
select.field__input {
  padding-right: 44px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9c99a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px;
}
select.field__input:invalid, select.field__input.is-placeholder { color: var(--gf-dim); }
select.field__input option { color: #fff; background: #07200f; }
select.field__input:disabled { opacity: .75; cursor: default; }

/* sponsor found: the name comes back from the server into lblRefName */
.signup__ref {
  display: flex; align-items: center; gap: 8px; margin: -6px 0 16px; padding: 9px 12px; border-radius: 12px;
  font: 600 .82rem/1.3 var(--gf-body); color: #d9f7c4; background: rgba(74, 222, 128, .09); border: 1px solid rgba(74, 222, 128, .32);
}
.signup__ref .ico { width: 16px; height: 16px; flex: none; color: var(--gf-ok); }
.signup__ref small { font-weight: 500; color: var(--gf-muted); }
.signup__ref[hidden] { display: none; }

/* inline hint under a field */
.signup__hint { margin: -8px 0 14px; font-size: .74rem; line-height: 1.45; color: var(--gf-dim); }
.signup__hint.is-bad { color: #fca5a5; }
.field__input.is-bad { border-color: rgba(248, 113, 113, .75); box-shadow: 0 0 0 4px rgba(248, 113, 113, .14); }
.field__input.is-good { border-color: rgba(74, 222, 128, .6); }
.signup__pan { text-transform: uppercase; letter-spacing: .06em; }
.signup__pan::placeholder { text-transform: none; letter-spacing: 0; }

.signup__agree { margin: 6px 0 22px; }
.signup__agree .check { align-items: flex-start; line-height: 1.4; }
.signup__agree a { font-weight: 600; color: var(--gf-gold); }
.signup__agree a:hover { color: var(--gf-sun); text-decoration: underline; text-underline-offset: 3px; }

/* two fields side by side where there is room (password + confirm) */
.signup__two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .signup__two { grid-template-columns: 1fr; } }

/* UpdateProgress: shown by ASP.NET while a partial postback (sponsor lookup, side, sign up) is running */
.gf-busy {
  position: fixed; inset: 0; z-index: 10040; display: grid; place-items: center;
  background: rgba(2, 10, 5, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.gf-busy__box {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 999px;
  font: 600 .86rem/1 var(--gf-head); color: var(--gf-text);
  background: linear-gradient(180deg, #0f3319, #061a0c); border: 1px solid var(--gf-line-2); box-shadow: 0 24px 60px -20px #000;
}
.gf-busy__spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(147, 207, 28, .25); border-top-color: var(--gf-citron); animation: gf-spin .8s linear infinite; }
@keyframes gf-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) { .signup__wrap { padding-top: 84px; } }
@media (prefers-reduced-motion: reduce) { .gf-busy__spin { animation-duration: 2s; } }
