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;
    flex-wrap: wrap;
    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;
}

.google-login-copy {
    color: #666;
    margin: 0 0 20px;
}

.google-phone-binding {
    margin-top: 8px;
    padding: 20px;
    border: 1px solid #cbdaf7;
    border-radius: 12px;
    background: #f5f8ff;
    text-align: left;
}

.google-phone-binding[hidden] {
    display: none;
}

.google-binding-status {
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #1f9d70;
    color: #fff;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
}

.google-phone-binding h3 {
    margin: 0 0 8px;
    color: #162746;
    text-align: center;
}

.google-binding-help,
.google-binding-review-note {
    color: #56657c;
    font-size: 13px;
    line-height: 1.6;
}

.google-binding-help {
    margin: 0 0 16px;
    text-align: center;
}

.google-binding-help strong {
    color: #214f9b;
    overflow-wrap: anywhere;
}

.google-binding-review-note {
    margin: 12px 0 0;
}

.phone-login-copy,
.phone-number-help {
    color: #666;
    font-size: 14px;
}

.phone-login-copy {
    margin: 0 0 18px;
}

.phone-number-help {
    margin: 12px 0 0;
}

.international-phone-row {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 10px;
}

.international-phone-row input {
    min-width: 0;
}

.google-sign-in-button {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.error-message {
    min-height: 20px;
    margin-top: 14px;
    color: #c5221f;
    font-size: 14px;
}

.google-retry-button {
    display: block;
    margin: 12px auto 0;
    padding: 8px 16px !important;
    background: #2854a1 !important;
    color: #fff !important;
    font-size: 14px;
}

.google-retry-button:hover {
    background: #1f447f !important;
}

.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;
    }

    .login-methods button {
        padding: 9px 6px;
        margin: 0 1px;
        font-size: 14px;
    }

    .international-phone-row {
        grid-template-columns: 90px 1fr;
    }
}



.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;
}
