/* =========================================================
   Member Portal – Auth (Register) Page Styles
   Design: split-screen, geometric left panel + clean form
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink:      #0d0d14;
    --ink-mid:  #3d3d52;
    --ink-soft: #8888a0;
    --line:     #e4e4ef;
    --bg:       #f8f8fc;
    --white:    #ffffff;
    --accent:   #5b4aff;
    --accent-2: #8b3dff;
    --success:  #1fcc7a;
    --error:    #ff3d5a;
    --radius:   14px;
    --font:     'Outfit', sans-serif;
    --mono:     'JetBrains Mono', monospace;
}

html, body { height: 100%; }

.mp-auth-body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ── Split layout ── */
.mp-auth-split {
    display: flex;
    min-height: 100vh;
}

/* ── Left decorative panel ── */
.mp-auth-left {
    width: 42%;
    background: linear-gradient(145deg, #1a0a4a 0%, #2d1277 45%, #4a1fa8 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 52px;
    flex-shrink: 0;
}

.mp-auth-left-inner { position: relative; z-index: 2; }

/* Decorative geometric shape */
.mp-auth-bg-shape {
    position: absolute;
    inset: -80px;
    background:
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139,61,255,.35) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(91,74,255,.25) 0%, transparent 60%);
    z-index: 1;
}
.mp-auth-bg-shape::before {
    content: '';
    position: absolute;
    top: 20%; left: 60%;
    width: 280px; height: 280px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    transform: translate(-50%,-50%);
}
.mp-auth-bg-shape::after {
    content: '';
    position: absolute;
    bottom: 15%; right: 10%;
    width: 180px; height: 180px;
    border: 1px solid rgba(255,255,255,.06);
    transform: rotate(45deg);
}

.mp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 56px;
}
.mp-logo-mark {
    font-size: 26px;
    color: #c4aaff;
    line-height: 1;
}
.mp-logo-name {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    letter-spacing: -.3px;
}

.mp-auth-hero h1 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}
.mp-auth-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #c4aaff, #a78bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mp-auth-hero p {
    color: rgba(255,255,255,.65);
    font-size: 15px;
    line-height: 1.65;
    max-width: 320px;
    margin-bottom: 40px;
}

.mp-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mp-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    font-weight: 500;
}
.mp-feat-icon {
    color: #c4aaff;
    font-size: 12px;
    flex-shrink: 0;
}

/* ── Right form panel ── */
.mp-auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    overflow-y: auto;
}

.mp-auth-form-wrap {
    width: 100%;
    max-width: 480px;
}

.mp-auth-header {
    margin-bottom: 32px;
}
.mp-auth-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--ink);
    margin-bottom: 6px;
}
.mp-auth-header p {
    color: var(--ink-soft);
    font-size: 14px;
}
.mp-auth-header a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.mp-auth-header a:hover { text-decoration: underline; }

/* ── Fields ── */
.mp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.mp-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}
.mp-field label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--ink-mid);
}
.mp-field input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.mp-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(91,74,255,.1);
}
.mp-field input::placeholder { color: var(--ink-soft); }

/* Password toggle */
.mp-pass-wrap { position: relative; }
.mp-pass-wrap input { padding-right: 44px; }
.mp-eye {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 4px;
    line-height: 1;
    transition: color .15s;
}
.mp-eye:hover { color: var(--ink); }

/* Strength bar */
.mp-strength-bar {
    height: 4px;
    border-radius: 4px;
    background: var(--line);
    margin-bottom: 6px;
    overflow: hidden;
}
.mp-strength-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width .3s, background .3s;
}
.mp-strength-label {
    font-size: 11px;
    font-family: var(--mono);
    color: var(--ink-soft);
    margin-bottom: 20px;
    min-height: 16px;
}

/* Submit button */
.mp-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity .18s, transform .12s;
    letter-spacing: .2px;
    margin-top: 6px;
}
.mp-submit-btn:hover { opacity: .9; }
.mp-submit-btn:active { transform: scale(.98); }
.mp-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Spinner */
.mp-spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mp-spin .7s linear infinite;
}
@keyframes mp-spin { to { transform: rotate(360deg); } }

/* Message */
.mp-msg {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.mp-msg.success { background: rgba(31,204,122,.1); color: #179957; border: 1px solid rgba(31,204,122,.25); }
.mp-msg.error   { background: rgba(255,61,90,.08); color: var(--error); border: 1px solid rgba(255,61,90,.2); }

/* ── Responsive ── */
@media (max-width: 860px) {
    .mp-auth-split { flex-direction: column; }
    .mp-auth-left { width: 100%; padding: 40px 32px 48px; min-height: unset; }
    .mp-auth-hero h1 { font-size: 32px; }
    .mp-auth-right { padding: 40px 24px; }
    .mp-field-row { grid-template-columns: 1fr; }
}
