body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    z-index: -1;
}

.top-menu {
    position: absolute;
    top: 20px;
    right: 20px;
}

.menu-icon {
    width: 30px;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.form-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 500px;
    padding: 30px;
}

.login-methods {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-methods button {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.login-methods button.active {
    color: #007BFF;
    border-bottom-color: #007BFF;
}

.form-box {
    display: none;
}

.form-box.active {
    display: block;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
}

.form-box {
    text-align: center;
}

.form-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-box input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-box button {
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-box button:hover {
    background-color: #0056b3;
}

.code-container {
    display: flex;
    gap: 10px;
}

.code-container input {
    flex-grow: 1;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .form-container {
        width: 90%;
        padding: 20px;
    }

    .qr-code {
        width: 200px;
        height: 200px;
    }
}



.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    flex-direction: column;
    min-width: 120px;
}

.menu-dropdown a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.menu-dropdown a:hover {
    background-color: #f1f1f1;
}

.menu-dropdown.show {
    display: flex;
}

