/* =====================================================================
   POWER GALAXY MART - Register page (split layout, pink & white)
   Used only by Register.aspx. Font: Lexend (powergalaxy-font.css).
   ===================================================================== */
:root {
    --navy: #980e4c; --blue: #b91660; --blue2: #e2177b; --b50: #fff0f7; --b100: #fedeed;
    --bg: #fcf3f7; --line: #f3e3ea; --tx: #3a1325; --tx2: #744a5c; --tx3: #ab8597; --red: #d93025;
    --ease: cubic-bezier(.05, .7, .1, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Lexend", sans-serif; background: var(--bg); color: var(--tx); font-size: 14px; -webkit-font-smoothing: antialiased; }
body input, body select, body textarea, body button { font-family: "Lexend", sans-serif; }
a { color: var(--blue); text-decoration: none; }

.rg { display: flex; min-height: 100vh; }

/* ---------- brand panel ---------- */
.rg-brand {
    position: sticky; top: 0; height: 100vh; flex: 0 0 34%; max-width: 560px; overflow: hidden; color: #fff;
    display: flex; flex-direction: column; justify-content: space-between; padding: 36px 40px 30px;
    background: linear-gradient(160deg, #980e4d 0%, #a11352 55%, #e40d74 100%);
}
.rg-brand__bg { position: absolute; inset: 0; pointer-events: none; }
.rg-brand__bg::before { /* soft grid */
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 36px 36px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.rg-brand__bg span { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.rg-brand__bg .o1 { width: 520px; height: 520px; right: -260px; top: 8%; animation: rgSpin 70s linear infinite; }
.rg-brand__bg .o1::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #f993c3; box-shadow: 0 0 12px #f993c3; }
.rg-brand__bg .o2 { width: 300px; height: 300px; right: -120px; bottom: -80px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .18), transparent 65%); border: 0; animation: rgFloat 9s ease-in-out infinite; }
.rg-brand__bg .o3 { width: 120px; height: 120px; left: 60%; top: 30%; background: radial-gradient(circle at 30% 30%, rgba(250, 181, 214, .35), transparent 70%); border: 0; animation: rgFloat 7s ease-in-out infinite reverse; }
.rg-brand > * { position: relative; z-index: 1; }
.rg-logo { align-self: flex-start; display: inline-flex; padding: 12px 18px; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); animation: rgUp .6s var(--ease) both; }
.rg-logo img { height: 40px; display: block; }
.rg-tag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; }
.rg-tag i { color: #fab5d6; font-size: 11px; }
.rg-brand h1 { margin: 18px 0 12px; font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.rg-brand h1 span { display: block; color: #fab5d6; }
.rg-brand .lead { margin: 0; font-size: 15px; line-height: 1.55; color: #ffe4f1; max-width: 420px; }
.rg-bar { display: block; width: 72px; height: 4px; border-radius: 4px; margin: 22px 0; background: #f993c3; }
.rg-brand__mid p:not(.lead) { margin: 0; font-size: 13.5px; line-height: 1.6; color: #f7cbe0; max-width: 400px; }
.rg-brand__mid > * { animation: rgUp .7s var(--ease) both; }
.rg-brand__mid > *:nth-child(2) { animation-delay: .08s; } .rg-brand__mid > *:nth-child(3) { animation-delay: .16s; } .rg-brand__mid > *:nth-child(n+4) { animation-delay: .24s; }
.rg-brand__foot { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13.5px; color: #f7cbe0; }
.rg-brand__foot a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- form side ---------- */
.rg-main { flex: 1; min-width: 0; padding: 32px 36px 18px; }
.rg-card { max-width: 980px; margin: 0 auto; padding: 36px 44px 30px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 16px 40px rgba(152, 14, 76, .06); animation: rgUp .6s var(--ease) both; }
.rg-head { text-align: center; margin-bottom: 26px; }
.rg-mlogo { display: none; height: 36px; margin-bottom: 14px; }
.rg-head h2 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.rg-head p { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--blue2); }
.rg-sec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 22px 0 14px; padding-top: 22px; border-top: 1px dashed var(--line); }
.rg-head + .rg-sec { border-top: 0; padding-top: 0; margin-top: 0; }
.rg-sec b { font-size: 15.5px; font-weight: 700; color: var(--tx); }
.rg-sec span { font-size: 12.5px; color: var(--tx2); }
.rg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.rg-grid--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-bottom: 14px; }
.rg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rg-span { grid-column: 1 / -1; }
.rg-f { min-width: 0; }
.rg-f > label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--tx); }
.rg-f > label em { font-style: normal; color: var(--red); }
.rg-f small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--tx3); }
.rg-f span[style*="color:Red"], .rg-f span[style*="color: Red"] { display: block; margin-top: 4px; font-size: 12px; }
.rg-in { position: relative; display: flex; align-items: center; height: 48px; border: 1.5px solid var(--line); border-radius: 14px; background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s; }
.rg-in:hover { border-color: #e7cad7; background: #fff; }
.rg-in:focus-within { border-color: var(--blue2); background: #fff; box-shadow: 0 0 0 4px rgba(226, 23, 123, .12); }
.rg-in > i { width: 46px; flex: none; text-align: center; color: var(--blue); font-size: 15px; }
.rg-in .form-control { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 14px 0 0; font-size: 14.5px; font-weight: 500; color: var(--tx); border-radius: 0 14px 14px 0; }
.rg-in .form-control::placeholder { color: #bb9baa; font-weight: 400; }
.rg-in--sel .form-control { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23744a5c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.rg-in--area { height: auto; align-items: flex-start; }
.rg-in--area > i { padding-top: 15px; }
.rg-in--area .form-control { min-height: 68px; padding: 12px 14px 12px 0; resize: vertical; line-height: 1.45; }
.rg-in.is-locked { background: #fff0f7; border-color: #fbcfe4; }
.rg-in.is-locked .form-control { color: var(--navy); font-weight: 700; }
.rg-note { display: flex; gap: 10px; align-items: flex-start; align-self: end; padding: 12px 14px; border-radius: 14px; background: var(--b50); color: var(--tx2); font-size: 12.5px; line-height: 1.5; }
.rg-note i { color: var(--blue2); margin-top: 2px; }
.rg-hidden { display: none !important; }

.rg-submit { margin-top: 28px; padding-top: 22px; border-top: 1px dashed var(--line); text-align: center; }
.rg-btnwrap { position: relative; max-width: 420px; margin: 0 auto; }
.rg-btnwrap input[type=submit], .rg-btnwrap .pg-btn {
    width: 100%; height: 52px; border: 0; border-radius: 26px; cursor: pointer;
    background: linear-gradient(115deg, #980e4c, #b91660 55%, #e2177b); color: #fff; font: 700 16px "Lexend", sans-serif; letter-spacing: .01em;
    box-shadow: 0 12px 26px rgba(185, 22, 96, .3); transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.rg-btnwrap input[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(185, 22, 96, .38); filter: brightness(1.05); }
.rg-spin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; display: none; animation: rgSpin .7s linear infinite; pointer-events: none; }
.rg-btnwrap.is-loading .rg-spin { display: block; }
.rg-btnwrap.is-loading input { color: transparent; pointer-events: none; }
.rg-alt { margin: 16px 0 0; font-size: 13.5px; color: var(--tx2); }
.rg-alt a { font-weight: 700; }
.rg-copy { text-align: center; font-size: 12px; color: var(--tx3); margin: 18px 0 0; }

@keyframes rgUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rgSpin { to { transform: rotate(360deg); } }
@keyframes rgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

@media (max-width: 1199.98px) {
    .rg-brand { flex-basis: 36%; padding: 30px; }
    .rg-brand h1 { font-size: 32px; }
    .rg-card { padding: 30px 28px 26px; }
    .rg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .rg { display: block; }
    .rg-brand { display: none; }
    .rg-main { padding: 18px 14px 14px; }
    .rg-mlogo { display: inline-block; }
    .rg-head h2 { font-size: 26px; }
}
@media (max-width: 575.98px) {
    .rg-card { padding: 22px 16px 20px; border-radius: 20px; }
    .rg-grid, .rg-grid--wide, .rg-grid--3 { grid-template-columns: 1fr; }
    .rg-note { align-self: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* PGM image logo */
.rg-logo { padding: 10px 18px; border-radius: 16px; }
.rg-logo img { height: 54px; width: auto; }
.rg-mlogo { height: 48px; width: auto; }

/* ---------- registration in progress (blocks double submit) ---------- */
.rg-busybox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(148, 24, 78, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.rg-busy .rg-busybox { display: flex; animation: rgFade .2s ease both; }
.rg-busybox > div { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 320px; padding: 26px 28px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 24px 60px rgba(148, 24, 78, .3); animation: rgUp .4s var(--ease) both; }
.rg-busybox__spin { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; border: 4px solid #fedeed; border-top-color: #e2177b; animation: rgSpin .8s linear infinite; }
.rg-busybox b { font-size: 16px; color: #980e4c; }
.rg-busybox small { font-size: 12.5px; color: #744a5c; line-height: 1.5; }
.rg-busy .rg-btnwrap input { pointer-events: none; }
@keyframes rgFade { from { opacity: 0; } to { opacity: 1; } }

/* Pink & white: brighter brand panel to match the sign-in page */
.rg-brand { background: linear-gradient(160deg, #e45a93 0%, #d23f7d 55%, #c2306c 100%) !important; }
