/* ═══════════════════════════════════════════════════════════════
   FAIRY BEAUTY SYSTEM — CINEMATIC REGISTER CSS
   Mirrors login.css. Wider card for multi-column form.
═══════════════════════════════════════════════════════════════ */

:root {
    --pink:       #df699f;
    --lavender:   #bfa0df;
    --pastel:     #e599ca;
    --text-dark:  #6e485d;
    --text-muted: #9e8b98;
    --glass-bg:  rgba(255,255,255,0.70);
    --glass-bdr: rgba(255,255,255,0.95);
    --input-bg:  rgba(255,255,255,0.92);
    --card-shadow:
        0 25px 50px rgba(180,100,160,0.35),
        0 8px  24px rgba(255,180,220,0.25),
        inset 0 0 24px rgba(255,255,255,0.50);
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; overflow-y: auto; }
body { margin: 0; min-height: 100vh; font-family: 'Inter', sans-serif; color: var(--text-dark); overflow-x: hidden; }

/* ── Background ── */
.register-page {
    position: relative;
    min-height: 100vh;
    background: url("../img/fairy_bg.png") center center / cover no-repeat fixed !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* ── Canvas ── */
#fx-canvas {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 5;
}



/* ══════════════════════════════════════════════════════════════
   REGISTER CARD — wider to fit 2-column grid
══════════════════════════════════════════════════════════════ */
.register-wrapper {
    width: 100%; display: flex;
    align-items: center; justify-content: center;
    z-index: 10; position: relative;
}

.register-page .card {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100dvh - 20px);
    overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    border-radius: 30px; padding: 18px 28px 18px;
    box-shadow: inset 0 2px 15px rgba(255,255,255,0.6), 0 10px 40px rgba(160, 50, 120, 0.25);
    z-index: 10; position: relative;
    will-change: transform;
    animation: cardFloat 8s ease-in-out infinite alternate;
}

@keyframes cardFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* ── Back Arrow ── */
.back-arrow {
    position: absolute; top: 16px; left: 20px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.62);
    border: 1.5px solid rgba(223,105,159,0.28); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--pink); font-size: 13px; text-decoration: none;
    transition: all 0.3s; z-index: 5;
}
.back-arrow:hover { background: var(--pink); color: #fff; transform: translateX(-2px); }

/* ── Logo ── */
.logo-wrapper { text-align: center; margin-bottom: 2px; position: relative; grid-column: 1 / -1; }
.logo-circle {
    width: 66px; height: 66px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    margin: 0 auto 3px;
    display: flex; align-items: center; justify-content: center;
    border: none; box-shadow: none;
    transition: transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
.logo-circle:hover { transform: rotate(360deg) scale(1.1); }
.logo-circle img {
    width: 100%; height: 100%; object-fit: contain;
    transform: scale(1.25);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
}
.logo-title {
    font-family: 'Cinzel', serif; font-size: 27px; font-weight: 600;
    letter-spacing: 3px; color: #8e44ad; margin: 0;
    text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 2px 4px rgba(255,255,255,0.8);
}
.logo-subtitle {
    font-family: 'Great Vibes', cursive; font-size: 19px;
    color: #e0468b; margin: -6px 0 6px; font-weight: 500;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}
.fairy-divider { display: flex; align-items: center; justify-content: center; margin-top: 2px; grid-column: 1 / -1; }
.fairy-divider .line { flex:1; max-width:60px; height:1px; background:linear-gradient(to right,transparent,rgba(223,105,159,0.5),transparent); }
.fairy-divider .heart-icon { margin:0 12px; color:#e0468b; font-size:9px; animation:heartPulse 2.2s ease-in-out infinite; }
@keyframes heartPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }

/* ── Form Grid ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 2px; }
.form-grid .full-width { grid-column: 1 / -1; }

.form-section {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 10px;
    font-family: 'Cinzel', serif; font-size: 9px; font-weight: 700; letter-spacing: 1.7px;
    color: #5c1c5b; text-transform: uppercase; margin: 6px 0 2px;
}
.form-section::before, .form-section::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, rgba(223,105,159,0.30), transparent);
}

/* ── Inputs (Flexbox for perfect alignment) ── */
.input-group {
    position: relative; width: 100%;
    display: flex; align-items: center;
    padding: 0 15px; height: 40px;
    border: 1px solid rgba(255,255,255,0.7); border-radius: 25px;
    background: rgba(255,255,255,0.45);
    box-shadow: inset 0 2px 8px rgba(255,255,255,0.5), 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25,0.8,0.25,1);
}
.input-group.full-width { grid-column: 1 / -1; }
.input-group:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.6); }
.input-group:focus-within {
    border-color: #e0468b; background: rgba(255,255,255,0.85);
    box-shadow: 0 0 15px rgba(255,255,255,0.8), inset 0 2px 5px rgba(255,255,255,0.6); transform: translateY(-1px);
}
.input-group .input-icon {
    color: #d14781; font-size: 13px; pointer-events: none;
    width: 18px; text-align: center; margin: 0 10px 0 0 !important;
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(255,255,255,0.8));
}
.input-group input, .input-group select {
    flex: 1; border: none; background: transparent; outline: none;
    margin: 0 !important; padding: 0 !important; height: 100%;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    color: #444; width: 100%;
}
.input-group input::placeholder { color: #888; font-weight: 400; }
.input-group select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23e0468b' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat; background-position: right 0px center; background-size: 16px; padding-right: 20px;
}
.input-group select option { background: #fff; color: #444; }
.toggle-pw {
    cursor: pointer; color: #888; font-size: 13px; transition: color 0.3s;
    margin: 0 0 0 10px !important; display: flex; align-items: center; justify-content: center;
}
.toggle-pw:hover { color: #e0468b; }

.pw-note { grid-column: 1/-1; color: rgba(255,255,255,0.9); font-size: 10.5px; text-align: center; margin: 0 0 2px; opacity: 0.95; line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }

/* ── Button ── */
.fairy-btn {
    width: 100%; max-width: 360px; margin: 8px auto 2px; display: block;
    padding: 10px; background: linear-gradient(90deg, #f03a89 0%, #b547d6 100%);
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 30px; color: #fff;
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
    cursor: pointer; 
    box-shadow: 0 8px 25px rgba(240, 58, 137, 0.5), inset 0 2px 5px rgba(255,255,255,0.4);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.35s ease;
    position: relative; overflow: hidden; outline: none;
    text-align: center; text-decoration: none;
    will-change: transform;
}
.fairy-btn:hover {
    filter: brightness(1.1); transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(240, 58, 137, 0.6), inset 0 2px 5px rgba(255,255,255,0.5);
}
.fairy-btn::before {
    content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.40) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); transition: 0.75s;
}
.fairy-btn:hover::before { left: 150%; }

/* ── Alerts ── */
.error-alert {
    background: rgba(254,226,226,0.82); border: 1px solid rgba(239,68,68,0.20);
    color: #b91c1c; padding: 9px 14px; border-radius: 14px;
    margin-bottom: 10px; font-size: 12px; text-align: center; line-height: 1.45;
}
.success-alert {
    background: rgba(255,255,255,0.46); border: 1.5px solid var(--glass-bdr);
    backdrop-filter: blur(12px); color: var(--text-dark);
    padding: 30px 24px; border-radius: 24px; margin-bottom: 10px; text-align: center;
    box-shadow: var(--card-shadow); animation: successFade 0.6s cubic-bezier(0.175,.885,.32,1.275);
}
@keyframes successFade { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
.alert-icon { width: 60px; height: 60px; background: linear-gradient(135deg,var(--pink),var(--lavender)); color:#fff; font-size:26px; line-height:60px; border-radius:50%; margin:0 auto 14px; box-shadow:0 6px 18px rgba(244,114,182,.28); }
.alert-text { font-size:13px; line-height:1.65; margin-bottom:18px; }
.alert-text strong { color:#a2517a; }

/* ── Dividers ── */
.star-divider { text-align:center; margin:6px 0; color:var(--pink); font-size:11px; opacity:0.55; letter-spacing:4px; }
.transition-text { text-align:center; font-size:12px; color:var(--text-dark); margin:4px 0 0; }
.transition-text .highlight { color:var(--pink); text-decoration:none; font-weight:700; transition:all 0.3s; }
.transition-text .highlight:hover { color:var(--lavender); letter-spacing:0.4px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
    .register-page .card { padding: 20px 22px 20px; border-radius: 26px; }
    .form-grid { grid-template-columns: 1fr; gap: 9px 0; }
    .form-grid .full-width, .form-section { grid-column: 1; }
}
@media (max-width: 520px) {
    .register-page .card { padding: 18px 16px 16px; }
    .logo-circle { width: 62px; height: 62px; margin-bottom: 6px; }
    .logo-title { font-size: 24px; }
    .logo-subtitle { font-size: 18px; }
    .input-group { padding: 0 14px; min-height: 40px; }
    .input-group input, .input-group select { font-size: 12.5px; padding: 10px 0; }
}
@media (max-height: 640px) {
    .register-page { padding: 8px 14px 24px; }
    .logo-wrapper { margin-bottom: 4px; }
    .logo-circle { width: 60px; height: 60px; }
    .logo-title { font-size: 23px; }
    .logo-subtitle { font-size: 17px; }
    .form-section { margin: 6px 0 1px; }
}
