.auth-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.auth-dialog-overlay.show {
    display: flex;
}
.auth-dialog {
    background: white;
    width: 400px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.auth-dialog-header h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    color: #333;
    width: calc(100% - 80px);
}
.auth-dialog-header p {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 10px 0 20px;
}
.auth-form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.auth-select {
    flex: 0 0 30%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.auth-phone-number,
.auth-password,
.auth-sms-code {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    width: 100%;
}

.auth-password-group {
    margin-bottom: 15px;
}

.auth-link-group {
    display: flex;
    justify-content: space-between;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background-color: #ff1744;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;

    margin-top: 30px;
}

.auth-button:hover {
    background-color: #f01040;
}

.auth-social-button {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-social-button:hover {
    background-color: #f5f5f5;
}

.auth-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    margin-right: 15px;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-or {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.auth-terms {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 20px;
}

.auth-terms a {
    color: #007bff;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

.auth-dialog-header {
    position: relative;
}
.auth-dialog-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-back-button {
    /*position: absolute;*/
    top: 0;
    left: 0;
    font-size: 20px;
    /*color: #007bff;*/
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.auth-back-button.hidden {
    display: none;
}


@media (max-width: 768px) {
    .auth-dialog {
        border-radius: 8px 8px 0 0;
        width: 100%;
        max-width: none;
        position: fixed;
        bottom: 0;
    }
}
