* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, #6b7280, #1e3a8a);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 420px;
    width: 100%;
    margin: 30px auto;
}

/* Menu Styles */
.nav-menu {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    gap: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-menu:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.nav-menu a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #0073ff;
    transform: scale(1.05);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: #0073ff;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
    left: 0;
}

/* Form Styles */
.form-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

h2 {
    text-align: center;
    margin-bottom: 10px; /* Zmenšené kvôli ikone */
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.user-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.icon-wrapper:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.user-icon svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    transition: border-color 0.3s ease, background 0.3s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #60a5fa;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.98);
}

.btn.loading {
    background: linear-gradient(90deg, #9ca3af, #d1d5db, #9ca3af);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    color: #e5e7eb;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes loading {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.form-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.form-link a {
    color: #60a5fa;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.form-link a:hover {
    color: #93c5fd;
}

.form-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background: #60a5fa;
    transition: width 0.3s ease, left 0.3s ease;
}

.form-link a:hover::after {
    width: 100%;
    left: 0;
}

.two-fa-inputs {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.two-fa-inputs input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    text-transform: uppercase;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.two-fa-inputs input:focus {
    border-color: #60a5fa;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.two-fa-inputs input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.good INPUT, INPUT.good {
    border: 1px solid rgba(51, 255, 0, 0.8);
}

.ready INPUT, INPUT.ready {
    border: 1px solid rgba(0, 238, 255, 0.8);
}

.bad INPUT, INPUT.bad {
    border: 1px solid rgba(255, 0, 13, 0.8);
}

.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.2) !important;
}

.form-description {
    text-align: center;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 10px;
}

.qr-code {
    text-align: center;
    margin-bottom: 20px;
}

.qr-image {
    max-width: 180px;
    width: 100%;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    margin: 20px 0;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.explanation {
    color: rgb(255, 238, 0);
}

.yourcode {
    font-weight: 600; color: #60a5fa; text-align: center; margin-bottom: 25px;
}

.error-message {
    display: none;
    text-align: center;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.error-message.visible {
    display: block;
    opacity: 1;
}

@media (max-width: 480px) {
    .qr-image {
        max-width: 120px;
        padding: 6px;
    }

    .form-description {
        font-size: 13px;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .container {
        padding: 15px;
    }

    .form-box {
        padding: 20px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 15px;
    }

    .two-fa-inputs input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    h2 {
        font-size: 20px;
    }

    .form-link {
        font-size: 13px;
    }

    .user-icon svg {
        width: 40px;
        height: 40px;
    }
}