/* ==========================================================================
   Customer register page (/register). Loaded only by auth/register.blade.php.
   Hero and card match user-selection.css; colours follow ds-theme.css.
   ========================================================================== */

.rg-page { background: #f6f7fb; font-family: "Manrope", sans-serif; color: #334155; }

/* --- Hero --- */
.rg-page .rg-hero { position: relative; overflow: hidden; padding: 40px 0 104px; text-align: center; color: #fff; background: linear-gradient(135deg, #1e1b4b 0%, #2e2a7a 60%, #3f51b5 100%); }
.rg-page .rg-hero::after { content: ""; position: absolute; right: -10%; bottom: -60%; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.rg-page .rg-crumb { margin-bottom: 14px; font-size: 13px; color: #c7cbe8; }
.rg-page .rg-crumb a { color: #c7cbe8; }
.rg-page .rg-crumb a:hover { color: #fff; }
.rg-page .rg-hero h1 { margin: 0 0 10px; font-family: "Manrope", sans-serif; font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.rg-page .rg-hero p { max-width: 520px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: #d6d9f2; }

/* --- Card + step bar --- */
.rg-page .rg-wrap { position: relative; z-index: 2; margin-top: -72px; padding-bottom: 72px; }
.rg-page .rg-card { max-width: 720px; margin: 0 auto; overflow: hidden; background: #fff; border: 1.5px solid #e7eaf3; border-radius: 22px; box-shadow: 0 18px 40px -24px rgba(30, 27, 75, .35); }

.rg-page .rg-steps { display: flex; border-bottom: 1px solid #e7eaf3; }
.rg-page .rg-step { position: relative; flex: 1; display: flex; align-items: center; gap: 12px; padding: 18px 24px; color: #64748b; }
.rg-page .rg-step + .rg-step { border-left: 1px solid #e7eaf3; }
.rg-page .rg-step b { display: block; font-size: 14px; color: #1e1b4b; }
.rg-page .rg-step small { font-size: 12px; }
.rg-page .rg-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f6f7fb; border: 1.5px solid #e7eaf3; font-size: 14px; font-weight: 800; }
.rg-page .rg-step.active .rg-num { background: #3f51b5; border-color: #3f51b5; color: #fff; }
.rg-page .rg-step.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: #3f51b5; }
.rg-page .rg-step.done .rg-num { background: #e7f6ee; border-color: #bfe6d0; color: #0f9d58; }

/* --- Fields --- */
.rg-page .rg-body { padding: 28px; }
.rg-page .rg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rg-page .rg-row-3 { grid-template-columns: 1.3fr 1fr .8fr; }
.rg-page .rg-field { margin-bottom: 18px; }
.rg-page .rg-field > label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #1e1b4b; }
.rg-page .rg-field > label em { font-style: normal; color: #dc2626; }
.rg-page .rg-optional { font-weight: 500; color: #64748b; }

.rg-page .rg-control { width: 100%; height: 48px; padding: 0 14px; background: #f6f7fb; border: 1.5px solid #e7eaf3; border-radius: 12px; font-family: "Manrope", sans-serif; font-size: 14px; color: #1e1b4b; transition: border-color .2s, box-shadow .2s, background .2s; }
.rg-page .rg-control:focus { outline: 0; background: #fff; border-color: #3f51b5; box-shadow: 0 0 0 4px rgba(63, 81, 181, .12); }
.rg-page .rg-field.invalid .rg-control { background: #fff5f5; border-color: #fca5a5; }

.rg-page .rg-input { position: relative; }
.rg-page .rg-input .rg-control { padding-right: 48px; }
.rg-page .rg-has-prefix .rg-control { padding-left: 54px; padding-right: 14px; }
.rg-page .rg-prefix { position: absolute; top: 1.5px; bottom: 1.5px; left: 1.5px; display: grid; place-items: center; width: 44px; border-right: 1.5px solid #e7eaf3; border-radius: 11px 0 0 11px; font-size: 14px; font-weight: 700; color: #64748b; }
.rg-page .rg-eye { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; font-size: 18px; color: #64748b; cursor: pointer; }
.rg-page .rg-eye:hover { background: #eef0fb; color: #3f51b5; }

.rg-page .rg-hint { display: block; margin-top: 5px; font-size: 12px; color: #64748b; }
.rg-page .rg-error { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: #dc2626; }
.rg-page .rg-error:empty { display: none; }

/* --- Logo upload --- */
.rg-page .rg-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rg-page .rg-logo { display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px; background: #f6f7fb; border: 1.5px dashed #cfd4ea; border-radius: 14px; cursor: pointer; transition: border-color .2s; }
.rg-page .rg-logo:hover { border-color: #3f51b5; }
.rg-page .rg-logo-thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; background: #fff; border: 1px solid #e7eaf3; border-radius: 14px; font-size: 26px; color: #3f51b5; }
.rg-page .rg-logo-thumb img { width: 100%; height: 100%; object-fit: contain; }
.rg-page .rg-logo b { display: block; font-size: 14px; color: #1e1b4b; word-break: break-all; }
.rg-page .rg-logo small { font-size: 12px; color: #64748b; }

/* --- Buttons + links --- */
.rg-page .rg-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.rg-page .rg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border: 0; border-radius: 14px; font-family: "Manrope", sans-serif; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .2s; }
.rg-page .rg-btn-primary { margin-left: auto; background: #3f51b5; color: #fff; }
.rg-page .rg-btn-primary:hover { background: #3343a0; }
.rg-page .rg-btn-primary:disabled { opacity: .7; cursor: wait; }
.rg-page .rg-btn-ghost { background: transparent; border: 1.5px solid #e7eaf3; color: #334155; }
.rg-page .rg-btn-ghost:hover { background: #f6f7fb; }

.rg-page .rg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: 720px; margin: 20px auto 0; font-size: 14px; color: #64748b; }
.rg-page .rg-foot a { font-weight: 800; color: #3f51b5; }
.rg-page .rg-foot a:hover { text-decoration: underline; }

@media only screen and (max-width: 640px) {
    .rg-page .rg-row,
    .rg-page .rg-row-3 { grid-template-columns: 1fr; gap: 0; }
    .rg-page .rg-step { padding: 14px 16px; }
    .rg-page .rg-step small { display: none; }
    .rg-page .rg-body { padding: 20px; }
    .rg-page .rg-actions { flex-direction: column-reverse; align-items: stretch; }
    .rg-page .rg-btn { width: 100%; }
    .rg-page .rg-btn-primary { margin-left: 0; }
    .rg-page .rg-foot { flex-direction: column; align-items: center; }
}
