@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary: #6366f1;
    --secondary: #a855f7;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
    z-index: -1;
    filter: blur(100px);
    animation: pulseBg 15s infinite alternate;
}

@keyframes pulseBg {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1;   }
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
    transform: translateY(-8px);
}

#typewriter::after {
    content: '|';
    animation: blink 0.8s infinite;
    color: var(--primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

.progress-fill {
    width: 0%;
    animation: fillProgress 2s ease-out forwards;
}

@keyframes fillProgress {
    to { width: 89%; }
}

.input-group {
    position: relative;
}

.input-group .send-code-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 14px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.input-group .send-code-btn:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.modal-link {
    color: #818cf8;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

