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

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(15, 15, 35, 0.85);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --success: #4ade80;
    --error: #f87171;
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    --glow: 0 0 40px rgba(108, 92, 231, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-primary);
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.float-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatAnim 15s ease-in-out infinite;
}

.c1 { width: 500px; height: 500px; background: var(--primary); top: -10%; left: -10%; animation-delay: 0s; }
.c2 { width: 400px; height: 400px; background: #00cec9; bottom: -15%; right: -10%; animation-delay: -5s; }
.c3 { width: 300px; height: 300px; background: #fd79a8; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -10s; }
.c4 { width: 200px; height: 200px; background: #fdcb6e; top: 20%; right: 20%; animation-delay: -3s; }
.c5 { width: 250px; height: 250px; background: #55efc4; bottom: 20%; left: 20%; animation-delay: -7s; }

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes floatAnim {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(40px, 40px) scale(1.05); }
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 16px;
    padding: 12px 18px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.6s ease;
}

.shield-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.badge-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Card */
.card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px 32px 32px;
    box-shadow: var(--shadow), var(--glow);
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.glass-reflection {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), #00cec9);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 14px;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}

.title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    transition: all 0.5s ease;
}

.step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

.step span {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step.active span {
    color: var(--primary-light);
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.step-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: lineProgress 3s ease infinite;
}

@keyframes lineProgress {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    z-index: 2;
    transition: color 0.3s ease;
}

.input-group:focus-within .input-icon {
    color: var(--primary-light);
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.input-group input:focus {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.input-label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
}

.input-group input:focus ~ .input-label,
.input-group input:not(:placeholder-shown) ~ .input-label {
    opacity: 1;
    top: -8px;
    left: 14px;
    font-size: 11px;
    color: var(--primary-light);
    background: var(--bg-card);
    padding: 0 6px;
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
    transition: width 0.4s ease;
    z-index: 3;
}

.input-group:focus-within .input-glow {
    width: 80%;
}

.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    z-index: 3;
    width: 24px;
    height: 24px;
}

.toggle-pass:hover {
    color: var(--text-secondary);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), #00cec9);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 8px;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.submit-btn:hover .btn-glow {
    opacity: 1;
}

/* Loader */
.loader {
    display: none;
    gap: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: dotBounce 1.2s ease infinite;
}

.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.submit-btn.loading .btn-text { opacity: 0; }
.submit-btn.loading .loader { display: flex; }

/* Trusted Section */
.trusted-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.trusted-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

#countUp {
    color: var(--primary-light);
    font-weight: 700;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.t-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Warning Message */
.warning-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.5s ease;
}

.success-overlay.show {
    display: flex;
}

.success-card {
    text-align: center;
    animation: scaleIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: successPulse 2s ease infinite;
}

.success-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.success-loader {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.s-bar {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
    animation: sBar 2s ease forwards;
}

@keyframes sBar {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

/* Responsive */
@media (max-width: 480px) {
    .main-container { padding: 12px; }
    .card { padding: 28px 20px 24px; border-radius: 20px; }
    .title { font-size: 20px; }
    .logo-icon { width: 48px; height: 48px; padding: 12px; }
}