:root {
    /* Turquoise shades for primary */
    --primary-color: #14b8a6;          /* teal-500 */
    --primary-gradient: linear-gradient(135deg, #0891b2, #14b8a6); /* cyan-600 to teal-500 */
    --primary-hover: #0891b2;
    --error-color: #ef4444;
    --success-color: #14b8a6;
    --text-color: #f3f4f6;
    --text-light: #9ca3af;
    --bg-color: #101010;
    --card-bg: #1a1a1a;
    --border-color: #202020;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Decorative circles - darker and more subtle */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
}

.bg-circle-1 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(8, 145, 178, 0.15));
    top: -100px;
    right: 0px;
    animation: float 8s ease-in-out infinite;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(236, 72, 153, 0.08));
    bottom: 0px;
    left: 10%;
    animation: float 9s ease-in-out infinite 1s;
}

.bg-circle-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(8, 145, 178, 0.1));
    top: 20%;
    left: -50px;
    animation: float 7s ease-in-out infinite 0.5s;
}

.bg-circle-4 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(8, 145, 178, 0.1));
    bottom: 30%;
    right: 5%;
    animation: float 10s ease-in-out infinite 1.5s;
}

.container {
    width: 100%;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
    border: 1px solid var(--border-color);
}

.container::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 10px;
    background: var(--primary-gradient);
    border-radius: 0 0 50px 50px;
    z-index: 2;
}

.container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(8, 145, 178, 0.15));
    border-radius: 0 0 0 100%;
    z-index: -1;
}

.container:hover {
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.5);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header .brand-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.4);
    position: relative;
}

.header .brand-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    z-index: -1;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.header .brand-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
}

.input-container {
    margin-bottom: 25px;
}

.input-container label {
    font-weight: 500;
    color: var(--text-color);
    display: block;
    margin-bottom: 12px;
}

.input-container input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #111111;
    font-size: 16px;
    color: var(--text-color);
    transition: var(--transition);
}

.input-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
    outline: none;
}

.input-container input:hover {
    border-color: var(--primary-color);
}

.btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
}

.btn:hover::before {
    left: 100%;
    transition: 0.7s;
}

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

#qrcode {
    margin: 30px auto 20px;
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    max-width: 240px; /* Limits the size */
}

#qrcode:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

#qrcode canvas {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
}

/* Download button */
.download-btn {
    display: block;
    margin: 15px auto 0;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-gradient);
    width: fit-content;
}

.download-btn:hover {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    transform: translateY(-20px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.success {
    background: var(--primary-gradient);
}

.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .header h1 {
        font-size: 26px;
    }
    .header p {
        font-size: 14px;
    }
}