﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
  --pink: #ffb1e5;
  --violet: #9c5bff;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --text-soft: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 90px rgba(126, 54, 159, 0.24);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; overflow: hidden; font-family: 'Poppins', sans-serif; background: radial-gradient(circle at top left, rgba(255,255,255,0.36), transparent 20%), linear-gradient(135deg, #fdafdd, #a667ff, #5b37f2); color: #fff; }
body { display: grid; place-items: center; }
.scene { position: fixed; inset: 0; z-index: 0; }
.floating-hearts { position: absolute; inset: 0; }
.floating-hearts .heart { position: absolute; width: 22px; height: 22px; background: radial-gradient(circle at top, #ffd2f9 0%, #ff70d8 72%); transform: rotate(45deg); border-radius: 50% 50% 0 50%; opacity: 0.92; animation: floatUp 12s infinite ease-in; }
.floating-hearts .heart::before, .floating-hearts .heart::after { content: ''; position: absolute; width: 22px; height: 22px; background: inherit; border-radius: 50%; }
.floating-hearts .heart::before { top: -11px; left: 0; }
.floating-hearts .heart::after { top: 0; left: -11px; }
.floating-hearts .heart:nth-child(1) { left: 12%; bottom: 12%; animation-delay: 0s; }
.floating-hearts .heart:nth-child(2) { left: 28%; bottom: 8%; animation-delay: 2s; animation-duration: 10s; }
.floating-hearts .heart:nth-child(3) { left: 44%; bottom: 16%; animation-delay: 1s; animation-duration: 11s; }
.floating-hearts .heart:nth-child(4) { left: 60%; bottom: 7%; animation-delay: 3s; animation-duration: 13s; }
.floating-hearts .heart:nth-child(5) { left: 76%; bottom: 15%; animation-delay: 0.8s; animation-duration: 12.5s; }
.floating-hearts .heart:nth-child(6) { left: 88%; bottom: 10%; animation-delay: 4s; animation-duration: 11.5s; }
.particles { position: absolute; inset: 0; pointer-events: none; }
.particles span { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); box-shadow: 0 0 24px rgba(255,255,255,0.18); animation: drift 14s infinite ease-in-out; }
.particles span:nth-child(1) { left: 8%; top: 25%; animation-delay: 0.2s; }
.particles span:nth-child(2) { left: 18%; top: 58%; animation-delay: 1.2s; }
.particles span:nth-child(3) { left: 34%; top: 74%; animation-delay: 2.1s; }
.particles span:nth-child(4) { left: 52%; top: 14%; animation-delay: 3.3s; }
.particles span:nth-child(5) { left: 70%; top: 48%; animation-delay: 4.5s; }
.particles span:nth-child(6) { left: 86%; top: 62%; animation-delay: 5.7s; }
.particles span:nth-child(7) { left: 22%; top: 10%; animation-delay: 6.8s; }
.particles span:nth-child(8) { left: 40%; top: 42%; animation-delay: 7.6s; }
.particles span:nth-child(9) { left: 63%; top: 80%; animation-delay: 8.7s; }
.particles span:nth-child(10) { left: 92%; top: 28%; animation-delay: 9.9s; }
.login-shell { position: relative; z-index: 1; width: min(520px, 96vw); padding: 2rem 1rem; }
.login-card { padding: 2.6rem 2rem 2rem; border-radius: 36px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.24); box-shadow: var(--shadow); backdrop-filter: blur(22px); overflow: hidden; animation: fadeIn 1s ease forwards; }
.profile-ring { width: 124px; height: 124px; margin: 0 auto 1.45rem; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,0.45), rgba(255,255,255,0.08)); }
.profile-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
h1 { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.55rem; }
.subtitle { text-align: center; color: var(--text-soft); margin-bottom: 1.9rem; line-height: 1.75; }
.login-form { display: grid; gap: 1rem; }
label { color: var(--text-soft); font-size: 0.95rem; margin-left: 0.25rem; }
input { width: 100%; padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.1); color: #fff; font-size: 1rem; outline: none; transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
input:focus { border-color: rgba(255,255,255,0.65); box-shadow: 0 0 0 10px rgba(255, 182, 255, 0.14); transform: translateY(-1px); }
.primary-btn, .music-toggle { width: 100%; border: none; border-radius: 18px; padding: 1rem 1.1rem; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; }
.primary-btn { background: linear-gradient(135deg, #ff84ca, #be76ff); color: #fff; box-shadow: 0 20px 40px rgba(209, 66, 190, 0.24); }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 52px rgba(209, 66, 190, 0.3); }
.music-toggle { margin-top: 0.8rem; background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.music-toggle:hover { transform: translateY(-2px); background: rgba(255,255,255,0.22); }
.feedback { min-height: 2.5rem; color: var(--text-soft); text-align: center; margin-top: 0.8rem; transition: transform 0.25s ease, opacity 0.25s ease; }
.feedback.error { color: #ffbbc2; }
@keyframes floatUp { 0% { transform: translateY(0) scale(0.86); opacity: 0; } 15% { opacity: 0.95; } 60% { opacity: 0.82; } 100% { transform: translateY(-110vh) scale(1.1); opacity: 0; } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 520px) { .login-card { padding: 1.8rem 1.4rem 1.4rem; border-radius: 28px; } h1 { font-size: 1.95rem; } }
