.login-container {
    background-color: var(--background-card);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
    width: 784px;
    display: flex;
    gap: 32px;
    transition: all 0.3s ease;
}

.login-form-side {
    flex: 1;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 8px 0;
}

.header p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}


.login-container label {
    display: block;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-container .input-wrapper input,
.form-item input {
    height: 40px;
}

label span {
    color: var(--required);
    padding-left: 4px;
}

.input-wrapper {
    display: flex;
    background-color: var(--input-bg);
    border-radius: 3px;
    align-items: center;
    height: 40px;
    position: relative;
}

.input-wrapper input {
    flex: 1;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-normal);
    font-size: 16px;
    outline: none;
}

.forgot-password {
    color: var(--text-link);
    font-size: 14px;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
}

.forgot-password:hover {
    text-decoration: underline;
}

.country-selector {
    display: none;
    align-items: center;
    padding: 0 12px;
    cursor: pointer;
    color: var(--text-normal);
    border-right: 1px solid #2e2f34;
    height: 100%;
    font-size: 16px;
    gap: 10px;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: #1e1f22;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 8px;
    margin-top: 4px;
}

.search-container {
    display: flex;
    align-items: center;
    background: #111214;
    padding: 4px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.search-input {
    background: transparent;
    border: none;
    padding: 4px;
    color: white;
    width: 100%;
    outline: none;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag-container {
    width: 24px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.selected-flag-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-text {
    white-space: nowrap;
    font-size: 16px;
}

.country-flag {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.country-list {
    max-height: 200px;
    overflow-y: auto;
}

.country-list::-webkit-scrollbar {
    width: 8px;
}

.country-list::-webkit-scrollbar-thumb {
    background-color: #4e5058;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background-color: #6d6f78;
}

.country-list::-webkit-scrollbar-track {
    background: transparent;
}


.country-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 8px;
    cursor: pointer;
    border-radius: 2px;
    color: var(--text-normal);
}

.country-item:hover {
    background: #35373c;
}

.login-button {
    width: 100%;
    background-color: var(--brand);
    color: white;
    height: 44px;
    padding: 2px 16px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 8px;
    transition: background-color 0.17s ease;
}

.login-button:hover {
    background-color: var(--button-hover);
}

.qr-side {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.qr-container {
    background-color: transparent;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
    width: 176px;
    height: 176px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.qr-container.qr-active {
    background-color: white;
}

.qr-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    z-index: 2;
}

.qr-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: none;
}

.qr-wrapper canvas,
.qr-wrapper img {
    width: 160px !important;
    height: 160px !important;
    display: block;
}

.qr-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.qr-logo-overlay .logo-inner {
    width: 38px;
    height: 38px;
    background: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-logo-overlay img {
    width: 26px !important;
    height: auto !important;
    border-radius: 50%;
}

.qr-side h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 8px 0;
}

.qr-side p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    line-height: 20px;
}

.input-wrapper.error {
    border: 1px solid var(--text-danger);
}

.form-group.error label {
    color: var(--text-danger);
}

.error-message {
    color: var(--text-danger);
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: fadeIn 0.2s ease;
}

.error-icon {
    width: 16px;
    height: 16px;
    background-color: var(--text-danger);
    color: var(--background-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.register-text {
    text-align: left;
    font-size: 14px;
    color: var(--text-muted);
}

.register-text a {
    color: var(--text-link);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.register-text a:hover {
    text-decoration: underline;
}

#ruffleModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.ruffle-container-wrapper {
    background: #000;
    padding: 5px;
    border: 1px solid #222;
    box-shadow: 0 0 100px rgba(255, 255, 255, 0.05);
    animation: modalPop 0.3s ease-out;
}

#ruffle-player-container ruffle-player {
    max-width: 95vw;
    max-height: 85vh;
}


#turnstile-wrapper {
    display: none;
    justify-content: left;
    margin-bottom: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 800px) {
    .login-container {
        width: 480px;
    }

    .qr-side {
        display: none;
    }
}