/* ═══════════════════════════════════════════════════════════════
   FAIRY BEAUTY SYSTEM — CINEMATIC LOGIN CSS (Performance Build)
   Heavy CSS filters removed. GPU-only: transform + opacity.
   SVG feTurbulence removed from overlay (too CPU-heavy).
═══════════════════════════════════════════════════════════════ */

: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: 'Outfit', sans-serif;
       color: var(--text-dark); overflow-x: hidden; }

/* ══════════════════════════════════════════════════════════════
   BACKGROUND
══════════════════════════════════════════════════════════════ */
.login-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: 10px 16px;
}

/* ══════════════════════════════════════════════════════════════
   CANVAS (glitter / petals / orbs)
══════════════════════════════════════════════════════════════ */
#fx-canvas {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 5;
}



/* ══════════════════════════════════════════════════════════════
   GLASSMORPHISM CARD
══════════════════════════════════════════════════════════════ */
.login-wrapper {
    width: 100%; display: flex; align-items: center; justify-content: center;
    z-index: 10; position: relative;
}
.login-page .card {
    width: min(365px, 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: 22px 24px 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 7s ease-in-out infinite alternate;
}
.login-page .card::-webkit-scrollbar { display: none; }
@keyframes cardFloat {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}

/* ── 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: #e0468b; font-size: 13px; text-decoration: none;
    transition: all 0.3s; z-index: 5;
}
.back-arrow:hover { background: #e0468b; color: #fff; transform: translateX(-2px); }

/* ── Logo ── */
.logo-wrapper { text-align: center; margin-bottom: 2px; position: relative; }
.logo-circle {
    width: 68px; height: 68px; 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: -4px 0 7px; 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; }
.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)} }

/* ── Inputs (Flexbox for perfect alignment) ── */
.input-group {
    position: relative; margin-bottom: 9px; width: 100%;
    display: flex; align-items: center;
    padding: 0 15px; height: 41px;
    border: 1px solid rgba(255,255,255,0.7); border-radius: 30px;
    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 ease;
}
.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 {
    flex: 1; border: none; background: transparent; outline: none;
    margin: 0 !important; padding: 0 !important; height: 100%;
    font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500;
    color: #444; width: 100%;
}
.input-group input::placeholder { color: #888; font-weight: 400; }
.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; }

/* ── Role Selection ── */
.role-selection { display: flex; justify-content: center; gap: 30px; margin: 10px 0 12px; }
.custom-radio { display: flex; align-items: center; cursor: pointer; position: relative; padding-left: 25px; user-select: none; }
.custom-radio input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.radio-mark {
    position: absolute; left: 0; height: 16px; width: 16px;
    background-color: transparent; border: 1.5px solid #f03a89; border-radius: 50%;
    transition: all 0.2s ease-in-out;
}
.custom-radio:hover input ~ .radio-mark { background-color: rgba(240, 58, 137, 0.1); }
.radio-mark:after {
    content: ""; position: absolute; display: none;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 8px; height: 8px; border-radius: 50%; background: #f03a89;
}
.custom-radio input:checked ~ .radio-mark:after { display: block; }
.radio-text { font-size: 13px; color: #555; font-weight: 500; font-family: 'Outfit', sans-serif; }

/* ── Button ── */
.fairy-btn {
    width: 100%; padding: 10px; margin-top: 5px;
    background: #FF4FCB;
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 30px; color: #fff;
    font-family: 'Outfit', 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;
}
.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), rgba(255,255,255,0.38), rgba(255,255,255,0));
    transform: skewX(-25deg); transition: 0.7s;
}
.fairy-btn:hover::before { left: 150%; }
.fairy-btn:hover { transform: translateY(-3px); box-shadow: 0 11px 24px rgba(223,105,159,0.40); background: #ff2fa7; }
.fairy-btn:active { transform: translateY(-1px); }

/* ── Card Options ── */
.card-options { display:flex; justify-content:center; align-items:center; margin:10px 0; padding:0 3px; }
.remember-me { display:flex; align-items:center; cursor:pointer; font-size:12px; user-select:none; color:var(--text-dark); position:relative; }
.remember-me input { position:absolute; opacity:0; cursor:pointer; height:0; width:0; }
.checkmark { position:relative; height:16px; width:16px; background:rgba(255,255,255,0.62); border:1.5px solid rgba(223,105,159,0.36); border-radius:4px; margin-right:6px; transition:all 0.3s; }
.remember-me:hover input ~ .checkmark { border-color:var(--pink); background:#fff; }
.remember-me input:checked ~ .checkmark { background:var(--pastel); border-color:var(--pastel); }
.checkmark::after { content:""; position:absolute; display:none; left:4px; top:1px; width:4px; height:8px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.remember-me input:checked ~ .checkmark::after { display:block; }
.label-text { font-size:12px; color:var(--text-dark); }
.forgot-link { font-size:12px; color:var(--pink); text-decoration:none; font-weight:500; transition:color 0.3s; }
.forgot-link:hover { color:var(--lavender); text-decoration:underline; }

.star-divider { text-align:center; margin:7px 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; }

/* ── Alerts ── */
.error-alert { background:rgba(254,226,226,0.82); border:1px solid rgba(239,68,68,0.18); color:#b91c1c; padding:9px 14px; border-radius:14px; margin-bottom:11px; font-size:12px; text-align:center; line-height:1.45; }

/* ── Captcha ── */
.captcha-wrapper {
    display:flex; justify-content:center; margin: 6px 0 -10px;
    transform:scale(0.75); transform-origin:center top;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width:520px) {
    .login-page .card { padding:18px 20px 14px; border-radius:26px; }
    .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 { font-size:13px; padding: 10px 0; }
    .fairy-btn { padding:10px; font-size:13px; }
}
@media (max-height:640px) {
    .login-page { padding:6px 14px; }
    .login-page .card { padding:16px 24px 12px; }
    .logo-wrapper { margin-bottom:5px; }
    .logo-circle { width:60px; height:60px; }
    .logo-title { font-size:23px; }
    .logo-subtitle { font-size:17px; }
    .input-group { margin-bottom:7px; }
}
