*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
}

.wrapper {
    display: flex; width: 100%; max-width: 950px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border: 0.5px solid rgba(0,0,0,0.08);
    overflow: hidden; min-height: 650px;
}

.form-side {
    flex: 2; padding: 48px 52px;
    display: flex; flex-direction: column; justify-content: center;
    background: rgba(255,255,255,0.6);
}

.section-label {
    font-size: 10px; font-weight: 700; color: rgba(0,0,0,0.35);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;
}
.section-title { font-size: 22px; font-weight: 600; color: #111; margin-bottom: 4px; }
.section-sub   { font-size: 13px; color: #888; margin-bottom: 28px; }

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block; font-size: 11px; font-weight: 600; color: #555;
    text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px;
}

.pw-wrap {
    position: relative;
}
.pw-wrap input {
    padding-right: 42px !important;
}
.pw-toggle {
    position: absolute;
    right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    padding: 0; color: #aaa;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s;
}
.pw-toggle:hover { color: #111; }
.pw-toggle svg { width: 18px; height: 18px; pointer-events: none; }

.form-group input {
    width: 100%; padding: 11px 16px;
    border: 1.5px solid rgba(0,0,0,0.09);
    background: rgba(255,255,255,0.8);
    border-radius: 10px; font-size: 14px;
    font-family: inherit; color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
    outline: none; border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
    background: #fff;
}

.pw-requirements {
    margin-top: 8px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 11.5px;
}
.pw-requirements ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
}
.pw-requirements li {
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.pw-requirements li.valid {
    color: #16a34a;
    font-weight: 600;
}
.pw-requirements li::before {
    content: '○';
    font-size: 12px;
}
.pw-requirements li.valid::before {
    content: '✓';
}

.btn {
    width: 100%; padding: 13px; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 6px;
    font-family: inherit; transition: transform 0.15s, background 0.2s;
}
.btn-primary { background: #111; color: white; }
.btn-primary:hover  { background: #2a2a2a; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
    background: #ccc; color: #999; cursor: not-allowed; transform: none;
}

.btn-guest {
    display: block; width: 100%; padding: 12px;
    border: 1.5px solid rgba(0,0,0,0.15); border-radius: 10px;
    font-size: 13px; font-weight: 600; font-family: inherit;
    color: #555; background: rgba(255,255,255,0.7);
    text-align: center; text-decoration: none; cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
    margin-bottom: 18px;
}
.btn-guest:hover {
    border-color: #111; background: rgba(255,255,255,0.95);
    color: #111; transform: translateY(-1px);
}

.row { display: flex; gap: 10px; }

.divider {
    display: flex; align-items: center; gap: 12px; margin: 18px 0;
}
.divider span { font-size: 11px; color: #bbb; white-space: nowrap; }
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.08);
}

.footer-links { margin-top: 4px; font-size: 12px; text-align: center; color: #888; line-height: 2; }
.footer-links a { color: #111; font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.success-box {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.25);
    color: #15803d;
    padding: 10px 14px; border-radius: 10px;
    margin-bottom: 18px; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}

.error-box {
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.2);
    color: #b91c1c;
    padding: 10px 14px; border-radius: 10px;
    margin-bottom: 18px; font-size: 12px; font-weight: 600;
}

.brand-side {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: #111; color: white; text-align: center;
    position: relative; overflow: hidden;
}
.brand-side::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px,
        transparent 1px, transparent 20px
    );
}
.brand-side::after {
    content: ''; position: absolute;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -60px; right: -60px;
}
.brand-logo {
    font-size: 72px; font-weight: 700; letter-spacing: -3px;
    position: relative; z-index: 1;
    background: linear-gradient(135deg, #fff 60%, rgba(255,255,255,0.45));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-divider {
    width: 32px; height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 14px auto; position: relative; z-index: 1;
}
.brand-name { font-size: 13px; letter-spacing: 3px; color: rgba(255,255,255,0.5); position: relative; z-index: 1; }
.brand-type { font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,0.25); margin-top: 4px; position: relative; z-index: 1; }

.hidden { display: none; }

body { padding: 0; align-items: stretch; justify-content: stretch; }
.wrapper {
    max-width: none; min-height: 100vh; min-height: 100dvh;
    border-radius: 0; box-shadow: none; border: none;
    background: transparent; backdrop-filter: none;
}
.form-side { padding: 48px 7vw; }
.form-side > * { width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
    .wrapper { flex-direction: column-reverse; }
    .brand-side { flex: 0 0 auto; padding: 28px 16px; font-size: 44px; }
    .brand-side .brand-logo { font-size: 44px; }
    .form-side { flex: 1; padding: 32px 22px 40px; justify-content: flex-start; }
}
.req { color: #dc2626; font-weight: 700; margin-left: 2px; }
.req-note { font-size: 11px; color: #888; margin: -18px 0 20px; }
.req-note .req { margin-left: 0; }
.brand-side {
    background:
        radial-gradient(60% 45% at 20% 15%, rgba(37,99,235,0.35) 0%, transparent 70%),
        radial-gradient(55% 45% at 85% 85%, rgba(124,58,237,0.35) 0%, transparent 70%),
        #0b0b0f;
    padding: 40px 24px 0;
    isolation: isolate;
}
.brand-side::before { z-index: 0; }
.brand-side::after { display: none; }

.bs-glow {
    position: absolute; width: 380px; height: 380px; border-radius: 50%;
    filter: blur(70px); opacity: .55; z-index: 0; pointer-events: none;
}
.bs-glow.g1 { background: #2563eb; top: -120px; left: -120px; animation: bsFloat1 12s ease-in-out infinite; }
.bs-glow.g2 { background: #7c3aed; bottom: -140px; right: -120px; animation: bsFloat2 14s ease-in-out infinite; }
@keyframes bsFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(70px,90px); } }
@keyframes bsFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-80px,-70px); } }

.bs-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bs-particles span {
    position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
    background: rgba(255,255,255,.55); animation: bsRise linear infinite;
}
.bs-particles span:nth-child(1) { left: 12%; animation-duration: 9s;  animation-delay: 0s; }
.bs-particles span:nth-child(2) { left: 28%; animation-duration: 12s; animation-delay: 2s; width: 3px; height: 3px; }
.bs-particles span:nth-child(3) { left: 46%; animation-duration: 10s; animation-delay: 4s; }
.bs-particles span:nth-child(4) { left: 63%; animation-duration: 13s; animation-delay: 1s; width: 5px; height: 5px; background: rgba(165,180,252,.6); }
.bs-particles span:nth-child(5) { left: 78%; animation-duration: 11s; animation-delay: 3s; width: 3px; height: 3px; }
.bs-particles span:nth-child(6) { left: 90%; animation-duration: 9.5s; animation-delay: 5s; }
@keyframes bsRise {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateY(-110vh); opacity: 0; }
}

.bs-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; margin: auto 0; }


.brand-side .brand-logo {
    font-size: 76px; font-weight: 800; letter-spacing: 6px; line-height: 1;
    background: linear-gradient(110deg, #ffffff 0%, #c7d2fe 30%, #ffffff 50%, #a5b4fc 70%, #ffffff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: bsShine 5s linear infinite;
}
@keyframes bsShine { 0% { background-position: 100% 0; } 100% { background-position: -120% 0; } }

.brand-side .brand-divider {
    width: 70px; height: 2px; margin: 16px auto;
    background: linear-gradient(90deg, transparent, #60a5fa, #a78bfa, transparent);
    animation: bsLine 3s ease-in-out infinite;
}
@keyframes bsLine { 0%,100% { width: 40px; opacity: .6; } 50% { width: 110px; opacity: 1; } }

.brand-side .brand-name { font-size: 15px; font-weight: 700; letter-spacing: 7px; text-transform: uppercase; color: rgba(255,255,255,.85); }
.brand-side .brand-type { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 8px; }

.bs-tag {
    margin-top: 26px; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 1px;
    color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.bs-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: bsLive 1.8s ease-out infinite; }
@keyframes bsLive { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }

.bs-eq {
    position: relative; z-index: 1; width: 100%; height: 110px; margin-top: 30px;
    display: flex; align-items: flex-end; justify-content: center; gap: 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.bs-eq span {
    flex: 1; max-width: 9px; height: 100%; border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #a78bfa 0%, #60a5fa 55%, rgba(37,99,235,.15) 100%);
    transform-origin: bottom; animation: bsBar 1.2s ease-in-out infinite;
    opacity: .85;
}
@keyframes bsBar { 0%,100% { transform: scaleY(.15); } 50% { transform: scaleY(var(--h, .8)); } }

@media (max-width: 768px) {
    .brand-side { padding: 30px 16px 0; }
    .brand-side .brand-logo { font-size: 50px; }
    .bs-tag { margin-top: 18px; }
    .bs-eq { height: 70px; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .brand-side *, .brand-side *::before { animation: none !important; }
}
.form-side {
    position: relative; overflow: hidden;
    background:
        radial-gradient(45% 35% at 10% 10%, rgba(37,99,235,0.10) 0%, transparent 70%),
        radial-gradient(40% 35% at 90% 95%, rgba(124,58,237,0.10) 0%, transparent 70%),
        rgba(255,255,255,0.6);
}
#login-form > * { animation: lfUp .6s ease both; }
#login-form > *:nth-child(2) { animation-delay: .05s; }
#login-form > *:nth-child(3) { animation-delay: .10s; }
#login-form > *:nth-child(4) { animation-delay: .15s; }
#login-form > *:nth-child(5) { animation-delay: .20s; }
#login-form > *:nth-child(6) { animation-delay: .28s; }
#login-form > *:nth-child(7) { animation-delay: .34s; }
#login-form > *:nth-child(8) { animation-delay: .40s; }
@keyframes lfUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lf-chip {
    display: inline-flex !important; width: auto !important; align-self: flex-start;
    align-items: center; gap: 8px; margin: 0 0 16px !important;
    padding: 6px 14px 6px 10px; border-radius: 999px;
    background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.18);
    color: #1d4ed8; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.lf-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 0 0 0 rgba(37,99,235,.5); animation: lfPing 1.8s ease-out infinite;
}
@keyframes lfPing { to { box-shadow: 0 0 0 8px rgba(37,99,235,0); } }

.lf-title { font-size: 32px; font-weight: 700; color: #0f172a; line-height: 1.15; letter-spacing: -0.8px; margin-bottom: 8px; }
.lf-title span {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lf-sub { font-size: 14px; color: #64748b; margin-bottom: 26px; }
#login-form .req-note { margin: -16px 0 22px; }

.lf-form .form-group { margin-bottom: 18px; }
.lf-form .form-group label { color: #334155; font-weight: 700; margin-bottom: 8px; }

.lf-input { position: relative; }
.lf-input .lf-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: #94a3b8; pointer-events: none; transition: color .2s;
}
.lf-input .lf-icon svg { width: 18px; height: 18px; display: block; }
.lf-form .lf-input input {
    padding: 14px 16px 14px 44px; border-radius: 12px;
    border: 1.5px solid rgba(15,23,42,0.10); background: #fff;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.lf-form .lf-input.pw-wrap input { padding-right: 44px !important; }
.lf-form .lf-input input:hover { border-color: rgba(37,99,235,0.35); }
.lf-form .lf-input input:focus {
    border-color: #2563eb; background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.14);
}
.lf-input:focus-within .lf-icon { color: #2563eb; }
.lf-input .pw-toggle { right: 14px; }

.lf-forgot { text-align: right; margin-top: 8px; }
.lf-forgot a { font-size: 12px; font-weight: 600; color: #2563eb; text-decoration: none; }
.lf-forgot a:hover { text-decoration: underline; }

.lf-btn {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px; margin-top: 8px; border-radius: 12px; font-size: 15px;
    background: linear-gradient(135deg, #111827 0%, #1e3a8a 55%, #4c1d95 100%);
    box-shadow: 0 10px 24px rgba(30,58,138,0.30);
}
.lf-btn svg { width: 18px; height: 18px; transition: transform .25s; }
.lf-btn::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-20deg); animation: lfShine 3.2s ease-in-out infinite;
}
@keyframes lfShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.lf-btn:hover { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #7c3aed 100%); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,99,235,0.35); }
.lf-btn:hover svg { transform: translateX(4px); }

.lf-divider { margin: 22px 0; }
.lf-divider span { color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; }

.lf-guest {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px; border-radius: 12px; background: #fff; color: #334155;
    border: 1.5px solid rgba(15,23,42,0.10); margin-bottom: 22px;
}
.lf-guest svg { width: 17px; height: 17px; }
.lf-guest:hover { border-color: #7c3aed; color: #5b21b6; background: #faf5ff; transform: translateY(-1px); }

.lf-register { text-align: center; font-size: 13px; color: #64748b; }
.lf-register a {
    font-weight: 700; text-decoration: none;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lf-register a:hover { text-decoration: underline; text-decoration-color: #7c3aed; }

@media (max-width: 768px) {
    .lf-title { font-size: 26px; }
    .lf-form .lf-input input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    #login-form > *, .lf-dot, .lf-btn::after { animation: none !important; }
}
.form-side > .lf-home {
    position: absolute; top: 28px; left: 32px; z-index: 5;
    width: auto; max-width: none; margin: 0;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px 9px 12px; border-radius: 999px;
    background: #fff; border: 1.5px solid rgba(15,23,42,0.10);
    box-shadow: 0 4px 14px rgba(15,23,42,0.06);
    color: #334155; font-size: 13px; font-weight: 600; text-decoration: none;
    transition: all .2s ease; animation: lfUp .5s ease both;
}
.lf-home svg { width: 16px; height: 16px; transition: transform .2s ease; }
.lf-home:hover {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 8px 20px rgba(37,99,235,0.30);
}
.lf-home:hover svg { transform: translateX(-3px); }
@media (max-width: 768px) {
    .form-side { padding-top: 76px !important; }
    .form-side > .lf-home { top: 20px; left: 22px; }
}