/* Register page redesign (preview). Restyles the existing register form; ids, fields and scripts are unchanged. */
.rg { padding: 30px 0 100px; }
.rg-grid { display: grid; grid-template-columns: 460px minmax(0, 1fr); align-items: stretch; }

/* Navy panel */
.rg-side { position: relative; overflow: hidden; border-radius: 26px 0 0 26px; background: linear-gradient(180deg, var(--blue-dk) 0%, var(--navy-2) 50%, var(--navy) 100%); color: #FFF; padding: 50px 44px 220px; }
.rg-eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #F9A25F; }
.rg-side h1 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 50px; color: #FFF; }
.rg-intro { margin: 0 0 32px; font-size: 17px; line-height: 27px; color: #C9D3E3; }
.rg-ben { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.rg-ben li { display: flex; gap: 14px; align-items: flex-start; }
.rg-ben svg { flex: none; margin-top: 2px; }
.rg-ben strong { display: block; font-size: 17px; }
.rg-ben li span span { display: block; margin-top: 2px; font-size: 15px; line-height: 22px; color: #C9D3E3; }
.rg-art { position: absolute; right: -40px; bottom: -20px; width: 300px; height: 230px; }

/* Form side */
.rg-main { background: #FFF; border: 1px solid var(--cream-line); border-left: 0; border-radius: 0 26px 26px 0; padding: 44px 50px; }
.rg-main .card { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; max-width: none; }
.rg-h, .rg-main h1, .signin-inline-title, .form-section-title { margin: 0 0 18px; font-size: 20px; font-weight: 700; color: var(--navy); font-family: var(--sans); }
.rg-main #verifyCard h1, .rg-main #verifyCard .verify-title { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 42px; margin-bottom: 10px; }
.rg-main form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.rg-main .full { grid-column: 1 / -1; }
.rg-main label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.rg-main .label-optional { font-weight: 400; color: #7A8698; }
.rg-main input[type="text"], .rg-main input[type="email"], .rg-main input[type="tel"], .rg-main input[type="password"], .rg-main input[type="url"], .rg-main select, .rg-main textarea {
  width: 100%; box-sizing: border-box; height: 50px; padding: 0 14px; border: 1.5px solid #D9CFBB; border-radius: 8px; background: #FFF; font: inherit; font-size: 16px; color: var(--navy); }
.rg-main select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.rg-main textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.rg-main input:focus, .rg-main select:focus, .rg-main textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,228,.15); }
.rg-main .hint { margin: 6px 0 0; font-size: 13px; line-height: 19px; color: #7A8698; }

.rg-main .form-section { margin-top: 14px; padding: 20px 22px; border-radius: 14px; background: var(--cream); }
.rg-main .form-section-title { margin-bottom: 4px; }
.rg-main .form-section-sub { margin: 0; font-size: 14px; line-height: 21px; color: #56667E; }

.rg-main .photo-field { display: flex; align-items: center; gap: 16px; }
.rg-main .photo-preview { width: 64px; height: 64px; border-radius: 32px; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #F2F6FE; border: 1.5px dashed var(--blue-lt); color: var(--blue); font-size: 22px; font-weight: 700; }
.rg-main .photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-main .photo-actions { flex: 1; min-width: 0; }
.rg-main .photo-field input[type="file"] { display: none; }
.rg-main .photo-btn { height: 40px; padding: 0 16px; border-radius: 6px; border: 1.5px solid var(--blue); background: #FFF; color: var(--blue); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.rg-main .photo-btn:hover { background: #F2F6FE; }
.rg-main .photo-remove { display: none; margin-left: 8px; padding: 8px; border: 0; background: none; color: #B4361C; font: inherit; font-size: 14px; cursor: pointer; }

.rg-main .terms-label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 400; color: #3D4C63; }
.rg-main .terms-label input { width: 20px; height: 20px; accent-color: var(--blue); }
.rg-main .terms-label a { color: var(--blue); font-weight: 700; text-decoration: none; }
.rg-main .submit { width: 100%; height: 54px; border: 0; border-radius: 6px; background: var(--orange); color: var(--navy); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.rg-main .submit:hover { background: var(--orange-lt); }
.rg-main .submit:disabled { opacity: .6; cursor: wait; }
.rg-main .error-note { display: none; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #B4361C; }
.rg-main .success-note { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #2D6B45; }
.rg-main .signin { margin: 18px 0 0; text-align: center; font-size: 15px; color: #56667E; }
.rg-main .signin a { color: var(--blue); font-weight: 700; text-decoration: none; }

/* After registering */
.rg-main .verify-icon { width: 56px; height: 56px; border-radius: 28px; background: #F2F6FE; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.rg-main #verifyCard .sub { margin: 0 0 10px; font-size: 17px; line-height: 27px; color: #3D4C63; }
.rg-main .verify-junk { margin: 0 0 8px; font-size: 15px; line-height: 23px; color: #56667E; }
.rg-main .resend-btn { margin-top: 8px; height: 44px; padding: 0 18px; border-radius: 6px; border: 1.5px solid #CFC4AE; background: #FFF; color: var(--navy); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.rg-main .resend-btn:disabled { opacity: .5; cursor: not-allowed; }
.rg-main .resend-note { margin: 8px 0 0; font-size: 14px; color: #56667E; }
.rg-main .verify-divider { height: 1px; background: var(--cream-line); margin: 28px 0; }
.rg-main #inlineSignInForm { grid-template-columns: 1fr; }

@media (max-width: 1180px) {
  .rg-grid { grid-template-columns: 1fr; }
  .rg-side { border-radius: 22px 22px 0 0; padding: 36px 32px 40px; }
  .rg-art { display: none; }
  .rg-main { border-left: 1px solid var(--cream-line); border-top: 0; border-radius: 0 0 22px 22px; }
}
@media (max-width: 760px) {
  .rg { padding: 16px 0 64px; }
  .rg-side { padding: 28px 22px 30px; }
  .rg-side h1 { font-size: 34px; line-height: 40px; }
  .rg-intro { font-size: 16px; line-height: 25px; margin-bottom: 22px; }
  .rg-ben { gap: 14px; }
  .rg-main { padding: 28px 20px; }
  .rg-main form { grid-template-columns: 1fr; }
}
.rg-main #verifyCard .verify-title { margin-top: 0; font-size: 36px; color: var(--navy); }
