:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --background-color: #f0f9ff;
    --border-color: #1e40af;
    --text-color: #1f2937;
    --input-border: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #2563eb;
    --gradient-end: #1d4ed8;
    --gradient-2-start: #3b82f6;
    --gradient-2-end: #1d4ed8;
    --gradient-3-start: #60a5fa;
    --gradient-3-end: #3b82f6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --success-color: #10b981;
    --error-color: #ef4444;
}

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

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    background: linear-gradient(135deg, 
        rgba(240, 249, 255, 0.95) 0%, 
        rgba(224, 242, 254, 0.95) 50%, 
        rgba(186, 230, 253, 0.95) 100%
    ),
    url('https://images.unsplash.com/photo-1557683316-973673baf926?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    place-items: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    padding: 2rem;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(59, 130, 246, 0.1) 100%
    );
    z-index: -1;
}

main {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    position: relative;
}

form {
    border: none;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%
    );
    box-shadow: 0 10px 25px -5px var(--shadow-color),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--gradient-start), 
        var(--gradient-2-start), 
        var(--gradient-end)
    );
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

form:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -5px var(--shadow-color),
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.875rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--gradient-start), 
        var(--gradient-2-start), 
        var(--gradient-end)
    );
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    border-radius: 2px;
}

h2 i {
    margin-right: 0.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.internal {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
}

#qr-code {
    border-radius: 1rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
    background: white;
    padding: 0.5rem;
}

#qr-code:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.qr-container {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%
    );
    border-radius: 1rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
}

.qr-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(59, 130, 246, 0.1) 100%
    );
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-overlay i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qr-container:hover .qr-overlay {
    opacity: 1;
}

.inputs {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

label i {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.5rem;
}

input {
    color: var(--text-color);
    font-family: monospace;
    height: 48px;
    padding: 0 16px;
    border: 2px solid var(--input-border);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-size: 1rem;
    background: white;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%
    );
}

input::placeholder {
    color: #9ca3af;
}

.instructions {
    text-align: center;
    margin: 2rem 0;
    font-size: 1rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(59, 130, 246, 0.05) 100%
    );
    border-radius: 0.75rem;
}

.instructions i {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.5rem;
}

button {
    width: 100%;
    height: 3.5rem;
    background: linear-gradient(135deg, 
        var(--gradient-start), 
        var(--gradient-2-start), 
        var(--gradient-end)
    );
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    color: white;
    border-radius: 0.75rem;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(0);
}

button i {
    margin-right: 0.5rem;
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .internal {
        flex-direction: column;
        gap: 2rem;
    }

    form {
        padding: 1.5rem;
    }

    #qr-code {
        width: 140px;
        height: 140px;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    body::before {
        display: none;
    }

    form {
        border: none;
        box-shadow: none;
        padding: 0;
        background: white;
    }

    form::before {
        display: none;
    }

    button {
        display: none;
    }

    .instructions {
        display: none;
    }

    #qr-code {
        box-shadow: none;
    }
}